From 54075b34782b382da4f7a7b08e88c17969400dbd Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 21 May 2009 08:21:26 +0000 Subject: 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 --- cpp/src/qpid/client/Connector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') 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(){ -- cgit v1.2.1