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:
Martin Sustrik
2011-05-26 11:30:25 +02:00
parent 87a6490b39
commit 718885fdcd
4 changed files with 56 additions and 67 deletions

View File

@@ -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