diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-04-02 00:46:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-02 00:46:26 -0400 |
| commit | c4a9dd3d262c880b8499e2f9b564d9ead99a7a22 (patch) | |
| tree | 47077506324da6137d56e322299942ee6eeb9512 /Emby.Server.Core/IO/LibraryMonitor.cs | |
| parent | b3640fbc9a0f7fd4a1def4e3c2f8860feb0f6922 (diff) | |
| parent | 4a8960fc866143e7107a5bc41527db6c5581974f (diff) | |
Merge pull request #2562 from MediaBrowser/dev
Dev
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); } |
