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:
Steven McCoy 2011-01-17 14:45:24 +01:00 committed by Martin Sustrik
parent a249d15200
commit 667b247e32

View File

@ -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;
}
}