diff --git a/Shoko.Server/Providers/AniDB/UDP/AniDBUDPConnectionHandler.cs b/Shoko.Server/Providers/AniDB/UDP/AniDBUDPConnectionHandler.cs index b95286709..f58babfca 100644 --- a/Shoko.Server/Providers/AniDB/UDP/AniDBUDPConnectionHandler.cs +++ b/Shoko.Server/Providers/AniDB/UDP/AniDBUDPConnectionHandler.cs @@ -208,18 +208,10 @@ private void LogoutTimerElapsed(object? sender, ElapsedEventArgs e) try { if (!_isLoggedOn) return; - _socketHandlerLock.Wait(); - try - { - if (_socketHandler == null || _socketHandler.IsLocked || !_socketHandler.IsConnected) return; - if (IsBanned || BackoffSecs.HasValue) return; + if (_socketHandler == null || _socketHandler.IsLocked || !_socketHandler.IsConnected) return; + if (IsBanned || BackoffSecs.HasValue) return; - ForceLogout(); - } - finally - { - _socketHandlerLock.Release(); - } + ForceLogout(); } catch (Exception exception) {