summaryrefslogtreecommitdiff
path: root/src/socket_base.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-05-25 10:25:51 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-05-25 10:25:51 +0200
commit87a6490b39c44e8f9c521f6ccea14f800a712d3f (patch)
tree3a4f5dceb1b737675e57a500e14a74d870d2bc63 /src/socket_base.cpp
parent3d4203decf87a5d5fb1718c2163f6d9c6c24328d (diff)
All pipe termination code moved to pipe_t
Till now the code was spread over mutliple locations. Additionally, the code was made more formally correct, with explicit pipe state machine etc. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r--src/socket_base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index fae55f2..1682c05 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -450,8 +450,8 @@ int zmq::socket_base_t::connect (const char *addr_)
// Attach local end of the pipe to the socket object.
attach_pipe (pipes [0], blob_t ());
- // Attach remote end of the pipe to the session object.
- session->attach_pipe (pipes [1], blob_t ());
+ // Attach remote end of the pipe to the session object later on.
+ session->attach_pipe (pipes [1]);
}
// Activate the session. Make it a child of this socket.