summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-02 11:58:39 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-02 11:58:39 +0200
commit702fdbb5dd6a83e7f656e8d1190e695ebb636765 (patch)
treec22f2d9c55d4600d928c4e488dde676240498b09 /src
parent75a5a8732cd5be1bb3bff608e352bf4ac624ffd4 (diff)
messages that may have been received in the init phase are flushed immediately after engine is plugged in
Diffstat (limited to 'src')
-rw-r--r--src/zmq_engine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zmq_engine.cpp b/src/zmq_engine.cpp
index 3cab4c9..f12fe1a 100644
--- a/src/zmq_engine.cpp
+++ b/src/zmq_engine.cpp
@@ -58,6 +58,9 @@ void zmq::zmq_engine_t::plug (i_inout *inout_)
set_pollout (handle);
inout = inout_;
+
+ // Flush all the data that may have been already received downstream.
+ in_event ();
}
void zmq::zmq_engine_t::unplug ()