From 718885fdcd7af797f940078ca8c22aebab93c8bb Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 26 May 2011 11:30:25 +0200 Subject: Pending messages are delivered even if connection doesn't exist yet Bug in previous refactoring fixed. Signed-off-by: Martin Sustrik --- src/session.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/session.hpp') diff --git a/src/session.hpp b/src/session.hpp index f1564d8..8bca735 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -59,10 +59,6 @@ namespace zmq protected: - // This function allows to shut down the session even though - // there are messages pending. - void terminate (); - // Two events for the derived session type. Attached is triggered // when session is attached to a peer. The function can reject the new // peer by returning false. Detached is triggered at the beginning of @@ -105,9 +101,9 @@ namespace zmq // is still in the in pipe. bool incomplete_in; - // If true the termination process is already underway, ie. term ack - // for the pipe was already registered etc. - bool terminating; + // True if termination have been suspended to push the pending + // messages to the network. + bool pending; // The protocol I/O engine connected to the session. struct i_engine *engine; -- cgit v1.2.3