Update BotClientService.cs
This commit is contained in:
parent
f7dd65781f
commit
5b12106301
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue