Commit c5e25631 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Run signals from the server in the main thread

parent 012554de
......@@ -196,7 +196,12 @@ namespace OVCCClient
debug ("Message type %s received", msg.get_type ().name ());
switch (msg.message_type) {
case MessageType.SIGNAL:
signal_handle.signal_received ((msg as SignalMessage));
Idle.add (() => {
if (! listen_loop_cancel.is_cancelled ()) {
signal_handle.signal_received (msg as SignalMessage);
}
return false;
});
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