0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 02:07:59 +08:00

Add connector.close() back

Needed if session->push() ever fails
This commit is contained in:
Thomas Rodgers 2015-02-18 11:17:41 -06:00
parent bbecdf397e
commit 5e60f18d3a

View File

@ -210,6 +210,7 @@ void zmq::stream_engine_t::plug (io_thread_t *io_thread_,
connector.set_metadata(metadata);
push_msg_to_session (&connector);
session->flush ();
connector.close();
}
else {
// start optional timer, to prevent handshake hanging on no input