summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-05-21 08:21:26 +0000
committerGordon Sim <gsim@apache.org>2009-05-21 08:21:26 +0000
commit54075b34782b382da4f7a7b08e88c17969400dbd (patch)
tree97a146e1dfe1a794e11e5a04dab1e6b9a7a50232 /cpp
parent7154e46361c1cacc1ce4c09b3db9eb07828f8e3a (diff)
downloadqpid-python-54075b34782b382da4f7a7b08e88c17969400dbd.tar.gz
QPID-1869: Set closed flag to false only after poller and aio are initialised.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@777006 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/client/Connector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Connector.cpp b/cpp/src/qpid/client/Connector.cpp
index 3d7fdc089b..1558f292aa 100644
--- a/cpp/src/qpid/client/Connector.cpp
+++ b/cpp/src/qpid/client/Connector.cpp
@@ -197,7 +197,6 @@ void TCPConnector::connect(const std::string& host, int port){
}
identifier = str(format("[%1% %2%]") % socket.getLocalPort() % socket.getPeerAddress());
- closed = false;
poller = Poller::shared_ptr(new Poller);
aio = AsynchIO::create(socket,
boost::bind(&TCPConnector::readbuff, this, _1, _2),
@@ -206,6 +205,7 @@ void TCPConnector::connect(const std::string& host, int port){
0, // closed
0, // nobuffs
boost::bind(&TCPConnector::writebuff, this, _1));
+ closed = false;
}
void TCPConnector::init(){