From 255ad0993d4334e306eb5475cee2cf82778dcecd Mon Sep 17 00:00:00 2001 From: RogueAI42 Date: Sun, 25 Jun 2017 15:35:03 +1000 Subject: refactoring a few server-related things --- ShiftOS_TheReturn/ServerManager.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ShiftOS_TheReturn/ServerManager.cs') diff --git a/ShiftOS_TheReturn/ServerManager.cs b/ShiftOS_TheReturn/ServerManager.cs index df3e463..66a0d37 100644 --- a/ShiftOS_TheReturn/ServerManager.cs +++ b/ShiftOS_TheReturn/ServerManager.cs @@ -89,6 +89,8 @@ Ping: {ServerManager.DigitalSocietyPing} ms /// public static Guid thisGuid { get; private set; } + public static AutoResetEvent guidReceiveARE = new AutoResetEvent(false); + /// /// Gets the underlying NetSockets client for this connection. /// @@ -241,6 +243,7 @@ Ping: {ServerManager.DigitalSocietyPing} ms { thisGuid = new Guid(msg.Contents); GUIDReceived?.Invoke(msg.Contents); + guidReceiveARE.Set(); TerminalBackend.PrefixEnabled = true; TerminalBackend.PrintPrompt(); } -- cgit v1.2.3