fix(network): Remove pointless lock

This commit is contained in:
Michael Carlberg 2016-05-31 16:07:55 +02:00
parent 688ca94658
commit 85f9dfd872

View File

@ -85,12 +85,8 @@ void NetworkModule::subthread_routine()
float(this->animation_packetloss->get_framerate()) / 1000.0f); float(this->animation_packetloss->get_framerate()) / 1000.0f);
while (this->enabled()) { while (this->enabled()) {
std::unique_lock<concurrency::SpinLock> lck(this->broadcast_lock); if (this->connected && this->conseq_packetloss)
if (this->connected && this->conseq_packetloss) {
lck.unlock();
this->broadcast(); this->broadcast();
}
std::this_thread::sleep_for(dur); std::this_thread::sleep_for(dur);
} }