mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Zmq: Added 50ms wait in the Run() loop to get rid of excessive cpu usage
(cherry picked from commit cbb6ca0339)
This commit is contained in:
@@ -56,6 +56,7 @@ void ZmqMux::Run()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
if (!_poller->poll())
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user