Browse Source

dialog(k): Fixed typo in loop in set_dlg_timeout_by_profile() so that
_all_ the dialogs actually get killed, not just the first one.

Alex Balashov 12 years ago
parent
commit
51cba80398
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules_k/dialog/dlg_profile.c

+ 2 - 2
modules_k/dialog/dlg_profile.c

@@ -761,9 +761,9 @@ int	dlg_set_timeout_by_profile(struct dlg_profile_table *profile,
 						return -1;
 					}
 				}
-			} while(ph != profile->entries[i].first);
 
-			ph = ph->next;
+				ph = ph->next;
+			} while(ph != profile->entries[i].first);
 		}
 
 		lock_release(&profile->lock);