From 275795a4db6f10e5f1c48e79b739ea75e337b930 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:25:24 +0100 Subject: [PATCH] adjust discord cleanup --- SecondBotEvents/Services/DiscordService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/SecondBotEvents/Services/DiscordService.cs b/SecondBotEvents/Services/DiscordService.cs index 657fdd9..b2331b7 100644 --- a/SecondBotEvents/Services/DiscordService.cs +++ b/SecondBotEvents/Services/DiscordService.cs @@ -613,6 +613,7 @@ namespace SecondBotEvents.Services if (DiscordClient != null) { LogFormater.Info("Discord service [Discord client cleanup]"); + DiscordClient.Dispose(); DiscordClient = null; } LogFormater.Info("Discord service [Stop done]");