Check_Connections(): code cleanup
This commit is contained in:
parent
4b0f526006
commit
037b4b76df
|
@ -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 <
|
||||||
|
|
Loading…
Reference in New Issue