Commit 742153a7 authored by bencefr's avatar bencefr
Browse files

Reverted do-while to while loop

parent 2f649c9a
......@@ -160,7 +160,8 @@ uint32_t SerializationTransport::send(uint8_t *cmdBuffer, uint32_t cmdLength, ui
// Event Thread
void SerializationTransport::eventHandlingRunner()
{
do {
while (runEventThread) {
std::unique_lock<std::mutex> eventLock(eventMutex);
eventWaitCondition.wait(eventLock);
while (!eventQueue.empty())
......@@ -194,7 +195,7 @@ void SerializationTransport::eventHandlingRunner()
eventLock.lock();
}
} while (runEventThread);
}
}
// Read Thread
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment