mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
don't restart timer if disposed
This commit is contained in:
parent
00307b9a44
commit
6f20a8ca05
@ -61,6 +61,11 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||
|
||||
public void RestartTimer()
|
||||
{
|
||||
if (_disposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
lock (_timerLock)
|
||||
{
|
||||
if (_timer == null)
|
||||
@ -281,8 +286,10 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||
}
|
||||
}
|
||||
|
||||
private bool _disposed;
|
||||
public void Dispose()
|
||||
{
|
||||
_disposed = true;
|
||||
DisposeTimer();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user