add check for NotStarted state in PL queue

This commit is contained in:
Stephen Birarda 2015-09-17 14:16:03 -07:00
parent 320429fd1e
commit 36e2d4fc76

View file

@ -138,7 +138,7 @@ void SendQueue::queuePacketList(std::unique_ptr<PacketList> packetList) {
_emptyCondition.notify_one();
}
if (!this->thread()->isRunning()) {
if (!this->thread()->isRunning() && _state == State::NotStarted) {
this->thread()->start();
}
}