Update BotClientService.cs

This commit is contained in:
Madpeter 2024-07-03 23:33:14 +01:00
parent f7dd65781f
commit 5b12106301

View file

@ -178,7 +178,10 @@ namespace SecondBotEvents.Services
bool isRestart = false;
if (client != null)
{
client.Network.Logout();
if (client.Network != null)
{
client.Network.Logout();
}
isRestart = true;
}
client = null;