Fixed timer problem on late Heartbeat. Thanks to Jorge.
authoretisserant
Fri, 11 Jan 2008 09:39:49 +0100
changeset 352 3347581c3140
parent 351 fb106ad03770
child 353 ee08ce0366a7
Fixed timer problem on late Heartbeat. Thanks to Jorge.
src/lifegrd.c
--- a/src/lifegrd.c	Thu Jan 10 16:12:45 2008 +0100
+++ b/src/lifegrd.c	Fri Jan 11 09:39:49 2008 +0100
@@ -68,6 +68,9 @@
 {
   /*MSG_WAR(0x00, "ConsumerHearbeatAlarm", 0x00);*/
 
+  /* timer have been notified and is now free (non periodic)*/
+  /* -> avoid deleting re-assigned timer if message is received too late*/
+  d->ConsumerHeartBeatTimers[id]=TIMER_NONE;
   /*! call heartbeat error with NodeId */
   (*d->heartbeatError)((UNS8)( ((d->ConsumerHeartbeatEntries[id]) & (UNS32)0x00FF0000) >> (UNS8)16 ));
 }