From 6be4b0143793ab5ceebc5d9d6bbe5c2f1333a0d2 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 21 Aug 2009 14:29:22 +0200 Subject: session management implemented --- src/object.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/object.cpp') diff --git a/src/object.cpp b/src/object.cpp index b1b7c8a..0a25750 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -131,9 +131,8 @@ void zmq::object_t::send_own (socket_base_t *destination_, owned_t *object_) void zmq::object_t::send_attach (session_t *destination_, zmq_engine_t *engine_) { - // Let the object know that it cannot shut down till it gets this command. - destination_->inc_seqnum (); - + // The assumption here is that command sequence number of the destination + // object was already incremented in find_session function. command_t cmd; cmd.destination = destination_; cmd.type = command_t::attach; -- cgit v1.2.3