Browse Source

dialog: shift next timer run for keepalives of dialog

- reported by Daniel Tryba
Daniel-Constantin Mierla 12 years ago
parent
commit
a17a32e5f7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/dialog/dlg_hash.c

+ 1 - 0
modules/dialog/dlg_hash.c

@@ -209,6 +209,7 @@ int dlg_ka_run(ticks_t ti)
 		/* append to tail */
 		/* append to tail */
 		if(dka!=NULL)
 		if(dka!=NULL)
 		{
 		{
+			dka->katime = ti + dlg_ka_interval;
 			lock_get(dlg_ka_list_lock);
 			lock_get(dlg_ka_list_lock);
 			if(*dlg_ka_list_tail!=NULL)
 			if(*dlg_ka_list_tail!=NULL)
 				(*dlg_ka_list_tail)->next = dka;
 				(*dlg_ka_list_tail)->next = dka;