From eef67ddf24cbdc8fe82ff228bbad6767ca2c941d Mon Sep 17 00:00:00 2001 From: da3dsoul Date: Sun, 10 Nov 2024 18:42:56 -0500 Subject: [PATCH] Don't dispose the AniDB connection at first time setup --- Shoko.Server/API/v3/Controllers/SettingsController.cs | 2 -- 1 file changed, 2 deletions(-) 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(); }