mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-23 18:50:26 +00:00
add null check to PeriodicTimer
This commit is contained in:
@@ -44,7 +44,7 @@ namespace MediaBrowser.Server.Implementations.Connect
|
||||
{
|
||||
Task.Run(() => LoadCachedAddress());
|
||||
|
||||
_timer = new PeriodicTimer(null, new TimerCallback(TimerCallback), TimeSpan.FromSeconds(5), TimeSpan.FromHours(3));
|
||||
_timer = new PeriodicTimer(TimerCallback, null, TimeSpan.FromSeconds(5), TimeSpan.FromHours(3));
|
||||
}
|
||||
|
||||
private readonly string[] _ipLookups = { "http://bot.whatismyipaddress.com", "https://connect.emby.media/service/ip" };
|
||||
|
||||
Reference in New Issue
Block a user