[asterisk-commits] bweschke: branch bweschke/eventq-sanity-checks
r58830 - /team/bweschke/eventq...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Mar 12 09:20:56 MST 2007
Author: bweschke
Date: Mon Mar 12 11:20:56 2007
New Revision: 58830
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58830
Log:
Don't be repetitive in the setup/reinit and fix the if clause there.
Modified:
team/bweschke/eventq-sanity-checks/main/manager.c
Modified: team/bweschke/eventq-sanity-checks/main/manager.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/eventq-sanity-checks/main/manager.c?view=diff&rev=58830&r1=58829&r2=58830
==============================================================================
--- team/bweschke/eventq-sanity-checks/main/manager.c (original)
+++ team/bweschke/eventq-sanity-checks/main/manager.c Mon Mar 12 11:20:56 2007
@@ -1936,14 +1936,10 @@
ast_mutex_lock(&s->__lock);
if (s->fd > -1) {
time(¤tt);
- if ((currentt - s->lasteventrun) > (maxeventage * 1000)) {
+ if ((currentt - s->lasteventrun) > (currentt - (maxeventage * 1000))) {
if (option_debug > 2)
ast_log(LOG_DEBUG, "Resetting the event pointer for this manager session.\n");
s->eventq = master_eventq;
- while (s->eventq->next && (s->eventq->timeposted < (currentt - (maxeventage * 1000)))) {
- eqe = s->eventq->next;
- s->eventq = eqe;
- }
}
if (!s->eventq)
s->eventq = master_eventq;
More information about the asterisk-commits
mailing list