mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
Core/Socket: Removed unused synchronous read method
This commit is contained in:
@@ -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