Reset deletion timers for in-responsible calls

pull/225/head
Frederic-Philippe Metz 11 years ago
parent fd3e2342c1
commit 9ca0be54c3

@ -189,6 +189,12 @@ static void call_timer_iterator(void *key, void *val, void *ptr) {
cm = c->callmaster;
if (!(c->redis_call_responsible)) {
ilog(LOG_DEBUG, "Redis-Notification: Timeout resets the deletion timers for a call where I am not responsible.");
c->deleted = c->ml_deleted = poller_now + cm->conf.delete_delay;
goto out;
}
if (c->deleted && poller_now >= c->deleted
&& c->last_signal <= c->deleted)
goto delete;
@ -259,11 +265,6 @@ next:
}
}
if (!(c->redis_call_responsible)) {
ilog(LOG_INFO, "Timeout did not lead to close the call since I am not responisble");
goto out;
}
ilog(LOG_INFO, "Closing call due to timeout");
drop:

Loading…
Cancel
Save