mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2026-01-27 14:52:26 -08:00
fix(Core/Network): fix high idle cpu load in NetworkThread (#21033)
This commit is contained in:
parent
9c01bbbd6e
commit
24726545fb
1 changed files with 2 additions and 2 deletions
|
|
@ -179,7 +179,7 @@ protected:
|
|||
{
|
||||
LOG_DEBUG("misc", "Network Thread Starting");
|
||||
|
||||
_updateTimer.expires_at(std::chrono::steady_clock::now());
|
||||
_updateTimer.expires_at(std::chrono::steady_clock::now() + std::chrono::milliseconds(1));
|
||||
_updateTimer.async_wait([this](boost::system::error_code const&) { Update(); });
|
||||
_ioContext.run();
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ protected:
|
|||
if (_stopped)
|
||||
return;
|
||||
|
||||
_updateTimer.expires_at(std::chrono::steady_clock::now());
|
||||
_updateTimer.expires_at(std::chrono::steady_clock::now() + std::chrono::milliseconds(1));
|
||||
_updateTimer.async_wait([this](boost::system::error_code const&) { Update(); });
|
||||
|
||||
AddNewSockets();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue