From 85f9dfd87285d09fc404e69259115f0182be3654 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 31 May 2016 16:07:55 +0200 Subject: [PATCH] fix(network): Remove pointless lock --- src/modules/network.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 2b8825c4..06b30782 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -85,12 +85,8 @@ void NetworkModule::subthread_routine() float(this->animation_packetloss->get_framerate()) / 1000.0f); while (this->enabled()) { - std::unique_lock lck(this->broadcast_lock); - - if (this->connected && this->conseq_packetloss) { - lck.unlock(); + if (this->connected && this->conseq_packetloss) this->broadcast(); - } std::this_thread::sleep_for(dur); }