mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 16:45:51 +08:00
Problem: tcp_connecter_t initialization reorder
Solution: initialize class variable in the same order as they are defined.
This commit is contained in:
parent
645c2be487
commit
a6e49860f5
@ -67,12 +67,12 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_,
|
|||||||
io_object_t (io_thread_),
|
io_object_t (io_thread_),
|
||||||
addr (addr_),
|
addr (addr_),
|
||||||
s (retired_fd),
|
s (retired_fd),
|
||||||
|
handle(NULL),
|
||||||
handle_valid (false),
|
handle_valid (false),
|
||||||
delayed_start (delayed_start_),
|
delayed_start (delayed_start_),
|
||||||
connect_timer_started (false),
|
connect_timer_started (false),
|
||||||
reconnect_timer_started (false),
|
reconnect_timer_started (false),
|
||||||
session (session_),
|
session (session_),
|
||||||
handle(NULL),
|
|
||||||
current_reconnect_ivl (options.reconnect_ivl)
|
current_reconnect_ivl (options.reconnect_ivl)
|
||||||
{
|
{
|
||||||
zmq_assert (addr);
|
zmq_assert (addr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user