Fix status if client crashes before being online to server error.

This commit is contained in:
Captain ALM 2021-03-20 15:52:18 +00:00
parent f2be7c2f2d
commit 9fc3f0d57f

View File

@ -103,12 +103,7 @@ namespace MelonVPNCore
Client.SendDataMessage(DataMessage.Online, true);
currentVpnProcess.EnableRaisingEvents = true;
}
else
{
shouldBeRunning = false;
Client.SendDataMessage(DataMessage.Offline, true);
Client.SendCustomMessage(Messages.ClientListEmptyMsg, true);
}
else { throw new InvalidOperationException("Client crashed!"); }
}
catch (Exception e)
{