diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-01 20:36:06 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-01 20:36:06 -0400 |
| commit | 733b891f529c2458d65560f556edf68052be2846 (patch) | |
| tree | 4c6de5d23e73f8fea02513a6936bdb01a39e7b62 /Emby.Server.Core/IO/LibraryMonitor.cs | |
| parent | d4d6314c5ac4515ad8ddf7c8636245ed2d93d4c8 (diff) | |
stub out cifs support
Diffstat (limited to 'Emby.Server.Core/IO/LibraryMonitor.cs')
| -rw-r--r-- | Emby.Server.Core/IO/LibraryMonitor.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Emby.Server.Core/IO/LibraryMonitor.cs b/Emby.Server.Core/IO/LibraryMonitor.cs index e1e3186c3..ae7b66597 100644 --- a/Emby.Server.Core/IO/LibraryMonitor.cs +++ b/Emby.Server.Core/IO/LibraryMonitor.cs @@ -166,7 +166,11 @@ namespace Emby.Server.Core.IO private void Restart() { Stop(); - Start(); + + if (!_disposed) + { + Start(); + } } private bool IsLibraryMonitorEnabaled(BaseItem item) @@ -589,11 +593,13 @@ namespace Emby.Server.Core.IO } } + private bool _disposed; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { + _disposed = true; Dispose(true); GC.SuppressFinalize(this); } |
