Copy monitor specific event endpoints to event messages as the engine etc. can be released at anytime

This commit is contained in:
Lourens Naudé
2012-11-17 11:29:47 +00:00
parent ce4d321684
commit 6d245eb6bc
7 changed files with 71 additions and 51 deletions

View File

@@ -484,7 +484,7 @@ int zmq::stream_engine_t::push_msg (msg_t *msg_)
void zmq::stream_engine_t::error ()
{
zmq_assert (session);
socket->event_disconnected (endpoint.c_str(), s);
socket->event_disconnected (endpoint, s);
session->detach ();
unplug ();
delete this;