Fix status if client crashes before being online to server error.
This commit is contained in:
parent
f2be7c2f2d
commit
9fc3f0d57f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user