fix invalid timeout value

This commit is contained in:
Lion Kortlepel
2023-12-05 18:00:34 +01:00
parent 667da22b0e
commit 11fe5ad200

View File

@@ -153,7 +153,6 @@ void TNetwork::TCPServerMain() {
if (ec) {
beammp_errorf("failed to accept: {}", ec.message());
}
ClientSocket.set_option(rcv_timeout_option{ 120000 }); //timeout of 120seconds
TConnection Conn { std::move(ClientSocket), ClientEp };
std::thread ID(&TNetwork::Identify, this, std::move(Conn));
ID.detach(); // TODO: Add to a queue and attempt to join periodically