bug fix
This commit is contained in:
parent
a4610ef287
commit
58e5dae5a7
1 changed files with 7 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue