Fix invalid address metadata for ZMQ_EVENT_DISCONNECTED

This commit is contained in:
Lourens Naudé
2012-08-04 11:41:33 +01:00
parent 1f22954762
commit 9dc248f6ab
9 changed files with 13 additions and 22 deletions

View File

@@ -111,9 +111,8 @@ void zmq::ipc_connecter_t::out_event ()
add_reconnect_timer();
return;
}
// Create the engine object for this connection.
stream_engine_t *engine = new (std::nothrow) stream_engine_t (fd, options);
stream_engine_t *engine = new (std::nothrow) stream_engine_t (fd, options, endpoint);
alloc_assert (engine);
// Attach the engine to the corresponding session object.