From 6ca07a30e397c3c7c58dabc863e9121bd2c101f0 Mon Sep 17 00:00:00 2001 From: Doron Somech Date: Sat, 18 Apr 2020 13:18:41 +0300 Subject: [PATCH] problem: checking the wrong socket when sending hello msg --- src/socket_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket_base.cpp b/src/socket_base.cpp index dcc494ef..792538fb 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -862,7 +862,7 @@ int zmq::socket_base_t::connect_internal (const char *endpoint_uri_) } // If set, send the hello msg of the peer to the local socket. - if (options.can_send_hello_msg + if (peer.options.can_send_hello_msg && peer.options.hello_msg.size () > 0) { send_hello_msg (new_pipes[1], peer.options); }