From c0ba1a04e605fcc4f2aec1e2600bbd873fee7cae Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 22 Nov 2007 20:18:19 +0000 Subject: [PATCH] Fixed sender buffer (push to front if send or select successful). --- src/net/common/senderthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/common/senderthread.cpp b/src/net/common/senderthread.cpp index 91ebd387..c27b9b9d 100644 --- a/src/net/common/senderthread.cpp +++ b/src/net/common/senderthread.cpp @@ -230,7 +230,7 @@ SenderThread::Main() { // Select was successful - store the packet back in the main queue. boost::mutex::scoped_lock lock(m_sendQueueMutex); - m_sendQueue.push_back(tmpData); + m_sendQueue.push_front(tmpData); } } else // other errors than would block @@ -249,7 +249,7 @@ SenderThread::Main() tmpData.bytesSent += bytesSent; // Send was partly successful - store the packet back in the main queue. boost::mutex::scoped_lock lock(m_sendQueueMutex); - m_sendQueue.push_back(tmpData); + m_sendQueue.push_front(tmpData); } else Msleep(SEND_TIMEOUT_MSEC);