This commit is contained in:
Volker Fischer 2006-03-08 18:52:55 +00:00
parent a4610ef287
commit 58e5dae5a7

View file

@ -90,8 +90,13 @@ void CProtocol::EnqueueMessage ( CVector<uint8_t>& vecMessage,
const int iCnt,
const int iID )
{
bool bListWasEmpty;
Mutex.lock();
{
// check if list is empty so that we have to initiate a send process
const bool bListWasEmpty = SendMessQueue.empty();
bListWasEmpty = SendMessQueue.empty();
}
// create send message object for the queue
CSendMessage SendMessageObj ( vecMessage, iCnt, iID );