Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Catch ResourceNotFoundException
Browse files Browse the repository at this point in the history
Thrown if the user abruptly stops playback
  • Loading branch information
ConfusedPolarBear committed Jun 9, 2022
1 parent f2f658b commit 0d44d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ConfusedPolarBear.Plugin.IntroSkipper/AutoSkip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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;
Expand Down Expand Up @@ -96,7 +97,7 @@ private void UserDataManager_UserDataSaved(object? sender, UserDataSaveEventArgs
return;
}
}
catch (NullReferenceException)
catch (Exception ex) when (ex is NullReferenceException || ex is ResourceNotFoundException)
{
return;
}
Expand Down

0 comments on commit 0d44d33

Please sign in to comment.