diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-04 09:51:42 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-04 09:51:42 +0200 |
commit | 103cbee6a509e55ff5def82eb5ec3ef7feb319a3 (patch) | |
tree | a770050db89a3e018474cc32b4f28d4f806e72e9 /src/zmq_engine.cpp | |
parent | 4914e5c9d192ac6763e5da6fa28ea503ee769bf0 (diff) |
couple of bugs fixed
Diffstat (limited to 'src/zmq_engine.cpp')
-rw-r--r-- | src/zmq_engine.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/zmq_engine.cpp b/src/zmq_engine.cpp index f12fe1a..298dd57 100644 --- a/src/zmq_engine.cpp +++ b/src/zmq_engine.cpp @@ -97,11 +97,8 @@ void zmq::zmq_engine_t::in_event () if (inpos < insize) reset_pollin (handle); - // If at least one byte was processed, flush all messages the decoder - // may have produced. - if (nbytes > 0) - inout->flush (); - + // Flush all messages the decoder may have produced. + inout->flush (); } void zmq::zmq_engine_t::out_event () |