mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fix hang terminating PGM ZMQ_SUB (#822).
This commit is contained in:
parent
19712d3fbb
commit
94943bab3b
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user