Commit 4a3b857c authored by Martin Sustrik's avatar Martin Sustrik

commands not processed immediatelly in some scenarios; fixed

parent 36b044a0
...@@ -123,9 +123,11 @@ bool zmq::app_thread_t::process_commands (bool block_, bool throttle_) ...@@ -123,9 +123,11 @@ bool zmq::app_thread_t::process_commands (bool block_, bool throttle_)
received = signaler.recv (&cmd, false); received = signaler.recv (&cmd, false);
} }
// Process the command, if any. // Process all the commands available at the moment.
if (received) while (received) {
cmd.destination->process_command (cmd); cmd.destination->process_command (cmd);
received = signaler.recv (&cmd, false);
}
return !terminated; return !terminated;
} }
......
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