Browse Source

dialog(k): fixed db initialization

- child init DB initialization condition properly tests the db mode
- reported by Juha Heinanen
Daniel-Constantin Mierla 16 years ago
parent
commit
fd5621f188
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_k/dialog/dialog.c

+ 1 - 1
modules_k/dialog/dialog.c

@@ -570,7 +570,7 @@ static int child_init(int rank)
 		if_update_stat(dlg_enable_stats, early_dlgs, early_dlgs_cnt);
 	}
 
-	if ( ((dlg_db_mode==DB_MODE_REALTIME || DB_MODE_DELAYED) &&
+	if ( ((dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED) &&
 	(rank>0 || rank==PROC_TIMER)) ||
 	(dlg_db_mode==DB_MODE_SHUTDOWN && (rank==PROC_MAIN)) ) {
 		if ( dlg_connect_db(&db_url) ) {