mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-24 00:46:59 +00:00
fix invalid timeout value
This commit is contained in:
@@ -153,7 +153,6 @@ void TNetwork::TCPServerMain() {
|
|||||||
if (ec) {
|
if (ec) {
|
||||||
beammp_errorf("failed to accept: {}", ec.message());
|
beammp_errorf("failed to accept: {}", ec.message());
|
||||||
}
|
}
|
||||||
ClientSocket.set_option(rcv_timeout_option{ 120000 }); //timeout of 120seconds
|
|
||||||
TConnection Conn { std::move(ClientSocket), ClientEp };
|
TConnection Conn { std::move(ClientSocket), ClientEp };
|
||||||
std::thread ID(&TNetwork::Identify, this, std::move(Conn));
|
std::thread ID(&TNetwork::Identify, this, std::move(Conn));
|
||||||
ID.detach(); // TODO: Add to a queue and attempt to join periodically
|
ID.detach(); // TODO: Add to a queue and attempt to join periodically
|
||||||
|
|||||||
Reference in New Issue
Block a user