Dispose of Shuffle properly before rebuilding it as otherwise you end up with random Shuffle ping tasks waking up and trying to ping a dead connection

This commit is contained in:
barelyprofessional
2024-06-27 11:15:41 +08:00
parent 5bff1a1035
commit 4ece07d64d
2 changed files with 11 additions and 2 deletions

View File

@@ -114,6 +114,7 @@ public class KickBot
{
if (e.Type == DisconnectionType.ByServer)
{
_shuffle.Dispose();
BuildShuffle();
}
}