From d907397aacd1518bc4d9d50b261ee41ec5ed79e8 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 8 Sep 2009 17:29:24 +0000 Subject: Fixed code that pushes a buffer into the read queue if closed for write git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@812590 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/posix/AsynchIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp index e702a6d76d..8545ebd9cb 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -383,7 +383,7 @@ void AsynchIO::queueWrite(BufferBase* buff) { assert(buff); // If we've already closed the socket then throw the write away if (queuedClose) { - bufferQueue.push_front(buff); + queueReadBuffer(buff); return; } else { writeQueue.push_front(buff); -- cgit v1.2.1