Browse Source

dialog: don't add dialog profiles when loading from db and state is terminated

Daniel-Constantin Mierla 11 years ago
parent
commit
9b88eb7ee2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/dialog/dlg_db_handler.c

+ 1 - 1
modules/dialog/dlg_db_handler.c

@@ -414,7 +414,7 @@ static int load_dialog_info_from_db(int dlg_hash_size, int fetch_num_rows)
 			dlg_set_toroute(dlg, &toroute_name);
 
 			GET_STR_VALUE(xdata, values, 21, 0, 0);
-			if(xdata.s!=NULL)
+			if(xdata.s!=NULL && dlg->state!=DLG_STATE_DELETED)
 			{
 				srjson_InitDoc(&jdoc, NULL);
 				jdoc.buf = xdata;