mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: tests reconnect_stop_after_disconnect failed
Solution: this test failed because "_disconnected" is not initialized in constructor, and the behavior of reconnect will not be as designed when "_disconnected" is randomly assigned to true. So we specify it as false in initialize list to solve this problem.
This commit is contained in:
parent
aa77c03a37
commit
ce17349f8b
@ -228,7 +228,8 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_,
|
||||
_monitor_events (0),
|
||||
_thread_safe (thread_safe_),
|
||||
_reaper_signaler (NULL),
|
||||
_monitor_sync ()
|
||||
_monitor_sync (),
|
||||
_disconnected (false)
|
||||
{
|
||||
options.socket_id = sid_;
|
||||
options.ipv6 = (parent_->get (ZMQ_IPV6) != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user