From 58e5dae5a7b25da1304f703f531c7760fe412c16 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 8 Mar 2006 18:52:55 +0000 Subject: [PATCH] bug fix --- src/protocol.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/protocol.cpp b/src/protocol.cpp index d47ceb4c..1b81d9d5 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -90,8 +90,13 @@ void CProtocol::EnqueueMessage ( CVector& vecMessage, const int iCnt, const int iID ) { - // check if list is empty so that we have to initiate a send process - const bool bListWasEmpty = SendMessQueue.empty(); + bool bListWasEmpty; + + Mutex.lock(); + { + // check if list is empty so that we have to initiate a send process + bListWasEmpty = SendMessQueue.empty(); + } // create send message object for the queue CSendMessage SendMessageObj ( vecMessage, iCnt, iID );