Fix hang terminating PGM ZMQ_SUB (#822).

This commit is contained in:
Jim Hague 2014-09-17 17:21:44 +01:00
parent 19712d3fbb
commit 94943bab3b

View File

@ -288,7 +288,7 @@ void zmq::pgm_receiver_t::drop_subscriptions ()
{
msg_t msg;
msg.init ();
while (session->pull_msg (&msg))
while (session->pull_msg (&msg) == 0)
msg.close ();
}