diff --git a/Shoko.Server/API/v3/Controllers/SettingsController.cs b/Shoko.Server/API/v3/Controllers/SettingsController.cs index 7e3204d85..287bcaca6 100644 --- a/Shoko.Server/API/v3/Controllers/SettingsController.cs +++ b/Shoko.Server/API/v3/Controllers/SettingsController.cs @@ -85,7 +85,6 @@ public async Task TestAniDB([FromBody] Credentials credentials) return ValidationProblem(ModelState); } - var alive = _udpHandler.IsAlive; var settings = SettingsProvider.GetSettings(); if (!_udpHandler.IsAlive) await _udpHandler.Init(credentials.Username, credentials.Password, settings.AniDb.UDPServerAddress, settings.AniDb.UDPServerPort, settings.AniDb.ClientPort); @@ -97,7 +96,6 @@ public async Task TestAniDB([FromBody] Credentials credentials) return ValidationProblem("Failed to log in.", "Connection"); } - if (!alive) await _udpHandler.CloseConnections(); return Ok(); }