Check_Connections(): code cleanup

This commit is contained in:
Alexander Barton 2012-08-26 12:04:40 +02:00
parent 4b0f526006
commit 037b4b76df
1 changed files with 4 additions and 4 deletions

View File

@ -1839,10 +1839,10 @@ Check_Connections(void)
if (My_Connections[i].lastping < if (My_Connections[i].lastping <
time(NULL) - Conf_PongTimeout) { time(NULL) - Conf_PongTimeout) {
/* Timeout */ /* Timeout */
LogDebug snprintf(msg, sizeof(msg),
("Connection %d: Ping timeout: %d seconds.", "Ping timeout: %d seconds",
i, Conf_PongTimeout); Conf_PongTimeout);
snprintf(msg, sizeof(msg), "Ping timeout: %d seconds", Conf_PongTimeout); LogDebug("Connection %d: %s.", i, msg);
Conn_Close(i, NULL, msg, true); Conn_Close(i, NULL, msg, true);
} }
} else if (My_Connections[i].lastdata < } else if (My_Connections[i].lastdata <