mirror of
https://github.com/jellyfin/jellyfin
synced 2024-10-15 04:02:32 +00:00
verify path exists in realtime monitor
This commit is contained in:
parent
1dea300f6b
commit
52a183804a
|
@ -288,6 +288,13 @@ namespace Emby.Server.Core.IO
|
|||
{
|
||||
try
|
||||
{
|
||||
if (!_fileSystem.DirectoryExists(path))
|
||||
{
|
||||
// Seeing a crash in the mono runtime due to an exception being thrown on a different thread
|
||||
Logger.Info("Skipping realtime monitor for {0} because the path does not exist", path);
|
||||
return;
|
||||
}
|
||||
|
||||
var newWatcher = new FileSystemWatcher(path, "*")
|
||||
{
|
||||
IncludeSubdirectories = true
|
||||
|
|
Loading…
Reference in a new issue