diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-01-22 21:24:52 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-01-22 21:24:52 +0000 |
| commit | 7dc705a029a44a54333e1eb46e141aa759ead7cb (patch) | |
| tree | 844e6a2fc2cc1f72b9aaf9957f4fce520e54b5ee /qpid/cpp/src | |
| parent | 32e2a8cfcea339eb5e2576daf0148be1e9626686 (diff) | |
| download | qpid-python-7dc705a029a44a54333e1eb46e141aa759ead7cb.tar.gz | |
If we've already closed Connection don't attempt to write to it
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@902278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/client/TCPConnector.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/client/TCPConnector.cpp b/qpid/cpp/src/qpid/client/TCPConnector.cpp index 360d8c133c..00584d168e 100644 --- a/qpid/cpp/src/qpid/client/TCPConnector.cpp +++ b/qpid/cpp/src/qpid/client/TCPConnector.cpp @@ -200,6 +200,10 @@ void TCPConnector::handleClosed() { void TCPConnector::writebuff(AsynchIO& /*aio*/) { + // It's possible to be disconnected and be writable + if (closed) + return; + Codec* codec = securityLayer.get() ? (Codec*) securityLayer.get() : (Codec*) this; if (codec->canEncode()) { std::auto_ptr<AsynchIO::BufferBase> buffer = std::auto_ptr<AsynchIO::BufferBase>(aio->getQueuedBuffer()); |
