aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/shared')
-rw-r--r--src/server/shared/Networking/NetworkThread.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/shared/Networking/NetworkThread.h b/src/server/shared/Networking/NetworkThread.h
index 7e0703ecb19..5f9071af656 100644
--- a/src/server/shared/Networking/NetworkThread.h
+++ b/src/server/shared/Networking/NetworkThread.h
@@ -122,8 +122,8 @@ protected:
{
TC_LOG_DEBUG("misc", "Network Thread Starting");
- _updateTimer.expires_from_now(boost::posix_time::milliseconds(10));
- _updateTimer.async_wait(std::bind(&NetworkThread<SocketType>::Update, this));
+ _updateTimer.expires_from_now(boost::posix_time::milliseconds(1));
+ _updateTimer.async_wait([this](boost::system::error_code const&) { Update(); });
_ioContext.run();
TC_LOG_DEBUG("misc", "Network Thread exits");
@@ -136,8 +136,8 @@ protected:
if (_stopped)
return;
- _updateTimer.expires_from_now(boost::posix_time::milliseconds(10));
- _updateTimer.async_wait(std::bind(&NetworkThread<SocketType>::Update, this));
+ _updateTimer.expires_from_now(boost::posix_time::milliseconds(1));
+ _updateTimer.async_wait([this](boost::system::error_code const&) { Update(); });
AddNewSockets();