diff --git a/src/network/protocols/connect_to_peer.cpp b/src/network/protocols/connect_to_peer.cpp index 33adbc294..e20ad3083 100644 --- a/src/network/protocols/connect_to_peer.cpp +++ b/src/network/protocols/connect_to_peer.cpp @@ -136,8 +136,8 @@ void ConnectToPeer::asynchronousUpdate() STKHost::get()->sendRawPacket(aloha, broadcast_address); Log::info("ConnectToPeer", "Broadcast aloha to self."); - // 10 seconds timeout - if (m_tried_connection++ > 5) + // 20 seconds timeout + if (m_tried_connection++ > 10) { // Not much we can do about if we don't receive the client // connection - it could have stopped, lost network, ... diff --git a/src/network/protocols/connect_to_server.cpp b/src/network/protocols/connect_to_server.cpp index bbee259d6..277552baa 100644 --- a/src/network/protocols/connect_to_server.cpp +++ b/src/network/protocols/connect_to_server.cpp @@ -142,7 +142,7 @@ void ConnectToServer::asynchronousUpdate() m_current_protocol = hide_address; return; } - if (m_tried_connection++ > 5) + if (m_tried_connection++ > 10) { Log::error("ConnectToServer", "Timeout waiting for aloha"); m_state = NetworkConfig::get()->isWAN() ?