*/
if (!el) return;
- DEBUG("TIMER - checking status of client %s", client->radclient->shortname);
-
// @todo - print out what we plan on doing next
connection = client->connection;
inst = client->inst;
* now==0, to signal that we have to *set* the timer.
*/
if (fr_time_eq(now, fr_time_wrap(0))) {
+ /*
+ * The timer is already set, don't do anything.
+ */
+ if (client->ev) return;
+
+ DEBUG("TIMER - setting idle timeout for connection from client %s", client->radclient->shortname);
+
switch (client->state) {
case PR_CLIENT_CONNECTED:
fr_assert(connection != NULL);
goto reset_timer;
}
+ DEBUG("TIMER - checking status of client %s", client->radclient->shortname);
+
/*
* It's a negative cache entry. Just delete it.
*/