0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

Cancel tx_timer_id in pgm_sender_t::out_event().

Signed-off-by: Toralf Wittner <toralf.wittner@gmail.com>
This commit is contained in:
Toralf Wittner 2010-10-16 08:27:57 +02:00 committed by Martin Sustrik
parent 733c6780c5
commit a1474e3057
2 changed files with 4 additions and 3 deletions

View File

@ -44,6 +44,7 @@ Tamara Kustarova <kustarova.tamara@gmail.com>
Taras Shpot <taras.shpot@eleks.com>
Tero Marttila <terom@fixme.fi>
Terry Wilson <terry@logivox.net>
Toralf Wittner <toralf.wittner@gmail.com>
Vitaly Mayatskikh <v.mayatskih@gmail.com>
Credits

View File

@ -174,9 +174,9 @@ void zmq::pgm_sender_t::out_event ()
put_uint16 (out_buffer, offset == -1 ? 0xffff : (uint16_t) offset);
}
if (has_rx_timer) {
cancel_timer (rx_timer_id);
has_rx_timer = false;
if (has_tx_timer) {
cancel_timer (tx_timer_id);
has_tx_timer = false;
}
// Send the data.