mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Cancel pending timers when decoder for PGM stalls
Otherwise the timer event can raise an input event causing assertion on unprocessed data. Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
This commit is contained in:
parent
a249d15200
commit
667b247e32
@ -227,6 +227,12 @@ void zmq::pgm_receiver_t::in_event ()
|
||||
reset_pollin (pipe_handle);
|
||||
reset_pollin (socket_handle);
|
||||
|
||||
// Reset outstanding timer.
|
||||
if (has_rx_timer) {
|
||||
cancel_timer (rx_timer_id);
|
||||
has_rx_timer = false;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user