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 <
time(NULL) - Conf_PongTimeout) {
/* Timeout */
LogDebug
("Connection %d: Ping timeout: %d seconds.",
i, Conf_PongTimeout);
snprintf(msg, sizeof(msg), "Ping timeout: %d seconds", Conf_PongTimeout);
snprintf(msg, sizeof(msg),
"Ping timeout: %d seconds",
Conf_PongTimeout);
LogDebug("Connection %d: %s.", i, msg);
Conn_Close(i, NULL, msg, true);
}
} else if (My_Connections[i].lastdata <