mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
ease up on directory watcher delay
This commit is contained in:
parent
e3cf3d73f1
commit
f6cdca1f07
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||||
{
|
{
|
||||||
// This is an arbitraty amount of time, but delay it because file system writes often trigger events after RemoveTempIgnore has been called.
|
// This is an arbitraty amount of time, but delay it because file system writes often trigger events after RemoveTempIgnore has been called.
|
||||||
// Seeing long delays in some situations, especially over the network.
|
// Seeing long delays in some situations, especially over the network.
|
||||||
await Task.Delay(40000).ConfigureAwait(false);
|
// Seeing delays up to 40 seconds, but not going to ignore changes for that long.
|
||||||
|
await Task.Delay(20000).ConfigureAwait(false);
|
||||||
|
|
||||||
string val;
|
string val;
|
||||||
_tempIgnoredPaths.TryRemove(path, out val);
|
_tempIgnoredPaths.TryRemove(path, out val);
|
||||||
|
|
Loading…
Reference in a new issue