fix(network): Remove pointless lock
This commit is contained in:
parent
688ca94658
commit
85f9dfd872
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user