Probable bug fix in HeartBeatStop
authoretisserant
Thu, 20 Mar 2008 13:46:06 +0100
changeset 423 d60363d872dd
parent 422 43a4d6deb007
child 424 5bbb2817a820
Probable bug fix in HeartBeatStop
src/lifegrd.c
--- a/src/lifegrd.c	Thu Mar 20 13:40:32 2008 +0100
+++ b/src/lifegrd.c	Thu Mar 20 13:46:06 2008 +0100
@@ -249,10 +249,10 @@
   UNS8 index;
   for( index = (UNS8)0x00; index < *d->ConsumerHeartbeatCount; index++ )
     {
-      d->ConsumerHeartBeatTimers[index + 1] = DelAlarm(d->ConsumerHeartBeatTimers[index + 1]);;
-    }
-
-  d->ProducerHeartBeatTimer = DelAlarm(d->ProducerHeartBeatTimer);;
+      d->ConsumerHeartBeatTimers[index] = DelAlarm(d->ConsumerHeartBeatTimers[index]);
+    }
+
+  d->ProducerHeartBeatTimer = DelAlarm(d->ProducerHeartBeatTimer);
 }
 
 /*!