Commit 93e0c3e3 authored by Jonathan Michalon's avatar Jonathan Michalon
Browse files

Handle signals in server

parent f1d5f4e2
......@@ -34,7 +34,7 @@ public class Client: Object
public Player player {get; set; default = null;}
public Game game {get; set; default = null;}
private SignalHandle signal_handle = null;
public SignalHandle signal_handle {get; private set; default = null; }
public Client ()
{
......
......@@ -141,7 +141,7 @@ public class Server: ThreadedSocketService
}
break;
case MessageType.SIGNAL:
client.signal_handle.signal_received ((msg as SignalMessage));
break;
case MessageType.DISCONNECT: running = false; break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment