Commit 667b247e authored by Steven McCoy's avatar Steven McCoy Committed by Martin Sustrik

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: 's avatarSteven McCoy <steven.mccoy@miru.hk>
parent a249d152
......@@ -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;
}
}
......
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