mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fixed directory watcher crash
This commit is contained in:
parent
c2c081c8e4
commit
f22c379a13
@ -269,10 +269,7 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||
|
||||
Logger.ErrorException("Error in Directory watcher for: " + dw.Path, ex);
|
||||
|
||||
if (ex.Message.Contains("network name is no longer available"))
|
||||
{
|
||||
//Network either dropped or, we are coming out of sleep and it hasn't reconnected yet - wait and retry
|
||||
Logger.Warn("Network connection lost - will retry...");
|
||||
var retries = 0;
|
||||
var success = false;
|
||||
while (!success && retries < 10)
|
||||
@ -296,19 +293,6 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||
Logger.Warn("Unable to access network. Giving up.");
|
||||
DisposeWatcher(dw);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!ex.Message.Contains("BIOS command limit"))
|
||||
{
|
||||
Logger.Info("Attempting to re-start watcher.");
|
||||
|
||||
dw.EnableRaisingEvents = false;
|
||||
dw.EnableRaisingEvents = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -110,7 +110,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
var items = inputItems.Where(i => !(i is MusicArtist)).ToList();
|
||||
|
||||
hints.AddRange(items.AsParallel().Select(item =>
|
||||
hints.AddRange(items.Select(item =>
|
||||
{
|
||||
var index = GetIndex(item.Name, searchTerm, terms);
|
||||
|
||||
|
@ -173,4 +173,7 @@ Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(Performance) = preSolution
|
||||
HasPerformanceSessions = true
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>MediaBrowser.Common.Internal</id>
|
||||
<version>3.0.85</version>
|
||||
<version>3.0.86</version>
|
||||
<title>MediaBrowser.Common.Internal</title>
|
||||
<authors>Luke</authors>
|
||||
<owners>ebr,Luke,scottisafool</owners>
|
||||
@ -12,7 +12,7 @@
|
||||
<description>Contains common components shared by Media Browser Theatre and Media Browser Server. Not intended for plugin developer consumption.</description>
|
||||
<copyright>Copyright © Media Browser 2013</copyright>
|
||||
<dependencies>
|
||||
<dependency id="MediaBrowser.Common" version="3.0.85" />
|
||||
<dependency id="MediaBrowser.Common" version="3.0.86" />
|
||||
<dependency id="NLog" version="2.0.1.2" />
|
||||
<dependency id="ServiceStack.Text" version="3.9.38" />
|
||||
<dependency id="SimpleInjector" version="2.2.1" />
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>MediaBrowser.Common</id>
|
||||
<version>3.0.85</version>
|
||||
<version>3.0.86</version>
|
||||
<title>MediaBrowser.Common</title>
|
||||
<authors>Media Browser Team</authors>
|
||||
<owners>ebr,Luke,scottisafool</owners>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>MediaBrowser.Server.Core</id>
|
||||
<version>3.0.85</version>
|
||||
<version>3.0.86</version>
|
||||
<title>Media Browser.Server.Core</title>
|
||||
<authors>Media Browser Team</authors>
|
||||
<owners>ebr,Luke,scottisafool</owners>
|
||||
@ -12,7 +12,7 @@
|
||||
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
||||
<copyright>Copyright © Media Browser 2013</copyright>
|
||||
<dependencies>
|
||||
<dependency id="MediaBrowser.Common" version="3.0.85" />
|
||||
<dependency id="MediaBrowser.Common" version="3.0.86" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
|
Loading…
x
Reference in New Issue
Block a user