summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index bc5f24ac3..f03601b39 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -1055,9 +1055,9 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_NEWGAME(Packet
* care about the server shutting down. */
if (this->status >= STATUS_JOIN) {
/* To throttle the reconnects a bit, every clients waits its
- * Client ID modulo 16. This way reconnects should be spread
- * out a bit. */
- _network_reconnect = _network_own_client_id % 16;
+ * Client ID modulo 16 + 1 (value 0 means no reconnect).
+ * This way reconnects should be spread out a bit. */
+ _network_reconnect = _network_own_client_id % 16 + 1;
ShowErrorMessage(STR_NETWORK_MESSAGE_SERVER_REBOOT, INVALID_STRING_ID, WL_CRITICAL);
}