mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-30 04:34:49 +03:00
verify path exists in realtime monitor
This commit is contained in:
@@ -288,6 +288,13 @@ namespace Emby.Server.Core.IO
|
|||||||
{
|
{
|
||||||
try
|
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, "*")
|
var newWatcher = new FileSystemWatcher(path, "*")
|
||||||
{
|
{
|
||||||
IncludeSubdirectories = true
|
IncludeSubdirectories = true
|
||||||
|
|||||||
Reference in New Issue
Block a user