aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/ServerManager.cs
diff options
context:
space:
mode:
authorRogueAI42 <[email protected]>2017-06-25 15:35:03 +1000
committerRogueAI42 <[email protected]>2017-06-25 15:35:03 +1000
commit255ad0993d4334e306eb5475cee2cf82778dcecd (patch)
tree7659b7ebd61167d8bf2c1c3d3df5fe366ec4010f /ShiftOS_TheReturn/ServerManager.cs
parent4c63e5e41c55d41c0bcaa09f125299d4b1892ef6 (diff)
downloadshiftos_thereturn-255ad0993d4334e306eb5475cee2cf82778dcecd.tar.gz
shiftos_thereturn-255ad0993d4334e306eb5475cee2cf82778dcecd.tar.bz2
shiftos_thereturn-255ad0993d4334e306eb5475cee2cf82778dcecd.zip
refactoring a few server-related things
Diffstat (limited to 'ShiftOS_TheReturn/ServerManager.cs')
-rw-r--r--ShiftOS_TheReturn/ServerManager.cs3
1 files changed, 3 insertions, 0 deletions
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
/// </summary>
public static Guid thisGuid { get; private set; }
+ public static AutoResetEvent guidReceiveARE = new AutoResetEvent(false);
+
/// <summary>
/// Gets the underlying NetSockets client for this connection.
/// </summary>
@@ -241,6 +243,7 @@ Ping: {ServerManager.DigitalSocietyPing} ms
{
thisGuid = new Guid(msg.Contents);
GUIDReceived?.Invoke(msg.Contents);
+ guidReceiveARE.Set();
TerminalBackend.PrefixEnabled = true;
TerminalBackend.PrintPrompt();
}