unplugged engine tries to manipulate the pollset -- fixed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2010-12-17 16:30:42 +01:00
parent b19ee99bb1
commit d15e881ea0

View File

@@ -133,7 +133,8 @@ void zmq::zmq_engine_t::in_event ()
// This may happen if queue limits are in effect or when
// init object reads all required information from the socket
// and rejects to read more data.
reset_pollin (handle);
if (plugged)
reset_pollin (handle);
}
// Adjust the buffer.