mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Merge pull request #2591 from laplaceyang/pr_cancel_timer_in_reconnect
fix bug: coredump if set linger and immediate together
This commit is contained in:
commit
99805931e4
@ -506,6 +506,11 @@ void zmq::session_base_t::reconnect ()
|
||||
pipe->terminate (false);
|
||||
terminating_pipes.insert (pipe);
|
||||
pipe = NULL;
|
||||
|
||||
if (has_linger_timer) {
|
||||
cancel_timer (linger_timer_id);
|
||||
has_linger_timer = false;
|
||||
}
|
||||
}
|
||||
|
||||
reset ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user