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);
|
Client.SendDataMessage(DataMessage.Online, true);
|
||||||
currentVpnProcess.EnableRaisingEvents = true;
|
currentVpnProcess.EnableRaisingEvents = true;
|
||||||
}
|
}
|
||||||
else
|
else { throw new InvalidOperationException("Client crashed!"); }
|
||||||
{
|
|
||||||
shouldBeRunning = false;
|
|
||||||
Client.SendDataMessage(DataMessage.Offline, true);
|
|
||||||
Client.SendCustomMessage(Messages.ClientListEmptyMsg, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user