Core/Socket: Removed unused synchronous read method
(cherry picked from commit 59e9bcf0bf44d89397f5a182e2ef21f7e3a3635d) Conflicts: src/server/game/Server/WorldSocket.cpp
This commit is contained in:
1 parent
8b07f1cd4d
commit
88af3ffc2a
2 files changed
+4
-21
No files matched your search
@@ -70,7 +70,9 @@ public:
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(_queueLock);
|
||||
|
||||
_condition.wait(lock, [this]() { return !_queue.empty() || _shutdown; });
|
||||
// we could be using .wait(lock, predicate) overload here but some threading error analysis tools produce false positives
|
||||
while (_queue.empty() && !_shutdown)
|
||||
_condition.wait(lock);
|
||||
|
||||
if (_queue.empty() || _shutdown)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user