diff options
| author | Gordon Sim <gsim@apache.org> | 2009-05-21 08:21:26 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2009-05-21 08:21:26 +0000 |
| commit | 93fdc60120df745f111d1d6f6bcedcb03c3d6720 (patch) | |
| tree | 98bcae04c786fa63c36126f3d1b25c38283a0720 | |
| parent | 09d6e1b104c45a8bee961b1cbcfcd2b9465df46f (diff) | |
| download | qpid-python-93fdc60120df745f111d1d6f6bcedcb03c3d6720.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@777006 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/src/qpid/client/Connector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/Connector.cpp b/qpid/cpp/src/qpid/client/Connector.cpp index 3d7fdc089b..1558f292aa 100644 --- a/qpid/cpp/src/qpid/client/Connector.cpp +++ b/qpid/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(){ |
