Catch ResourceNotFoundException

Thrown if the user abruptly stops playback
This commit is contained in:
ConfusedPolarBear 2022-06-09 15:38:30 -05:00
parent f2f658b365
commit 0d44d33010

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Controller.Session;
@ -96,7 +97,7 @@ public class AutoSkip : IServerEntryPoint
return;
}
}
catch (NullReferenceException)
catch (Exception ex) when (ex is NullReferenceException || ex is ResourceNotFoundException)
{
return;
}