Suppress logging of TMRstop error analagous to TMRstart fix

Alex Kiernan alexk at demon.net
Wed Mar 21 10:28:45 UTC 2001



The TMRstart() version of this got fixed, but the TMRstop one got
missed. I'm not sure if its affecting anything today, but with the
history API stuff in it was hitting nnrpd.

Index: timer.c
===================================================================
RCS file: /upstream-repositories/inn-cvs.isc.org/inn/lib/timer.c,v
retrieving revision 1.8
diff -c -r1.8 timer.c
*** timer.c	2001/03/06 01:47:49	1.8
--- timer.c	2001/03/21 10:24:52
***************
*** 246,251 ****
--- 246,255 ----
  void
  TMRstop(unsigned int timer)
  {
+     if (timer_count == 0) {
+         /* this should happen if innconf->timer == 0 */
+         return;
+     }
      if (timer_current == NULL)
          warn("timer %u stopped when no timer was running", timer);
      else if (timer != timer_current->id)

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC


More information about the inn-patches mailing list