mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
Pending messages are delivered even if connection doesn't exist yet
Bug in previous refactoring fixed. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -216,11 +216,12 @@ void zmq::pipe_t::process_pipe_term ()
|
||||
if (!delay) {
|
||||
state = terminating;
|
||||
send_pipe_term_ack (peer);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
state = pending;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Delimiter happened to arrive before the term command. Now we have the
|
||||
|
||||
Reference in New Issue
Block a user