aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/IO/LibraryMonitor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-06-06 02:13:49 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-06-06 02:13:49 -0400
commit7bc2a9a081a88ab4e3087ebd3ed756fccd7a020a (patch)
treeec802c7976091fd3a2e7ac5f0c871c96894e8f8b /Emby.Server.Core/IO/LibraryMonitor.cs
parent8a780bc023c7f66871f94f22fbb1b32d5c5ca14a (diff)
update people editing
Diffstat (limited to 'Emby.Server.Core/IO/LibraryMonitor.cs')
-rw-r--r--Emby.Server.Core/IO/LibraryMonitor.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Emby.Server.Core/IO/LibraryMonitor.cs b/Emby.Server.Core/IO/LibraryMonitor.cs
index 0f0640a38..ebc5e5e55 100644
--- a/Emby.Server.Core/IO/LibraryMonitor.cs
+++ b/Emby.Server.Core/IO/LibraryMonitor.cs
@@ -332,7 +332,13 @@ namespace Emby.Server.Core.IO
NotifyFilters.Attributes;
newWatcher.Created += watcher_Changed;
- newWatcher.Deleted += watcher_Changed;
+
+ // Seeing mono crashes on background threads we can't catch, testing if this might help
+ if (_environmentInfo.OperatingSystem == MediaBrowser.Model.System.OperatingSystem.Windows)
+ {
+ newWatcher.Deleted += watcher_Changed;
+ }
+
newWatcher.Renamed += watcher_Changed;
newWatcher.Changed += watcher_Changed;