Skip to content

Commit

Permalink
dialog: fix broken error check in load_dlg_db
Browse files Browse the repository at this point in the history
(cherry picked from commit c29a0d0)
  • Loading branch information
razvancrainea committed Jul 4, 2019
1 parent 1086762 commit 2024061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_db_handler.c
Expand Up @@ -208,7 +208,7 @@ int init_dlg_db(const str *db_url, int dlg_hash_size , int db_update_period)

void load_dlg_db(int dlg_hash_size)
{
if( (load_dialog_info_from_db(dlg_hash_size) ) !=0 ){
if( (load_dialog_info_from_db(dlg_hash_size) ) ==0 ){
if (dlg_db_mode==DB_MODE_SHUTDOWN && remove_all_dialogs_from_db()!=0)
LM_WARN("failed to properly remove all the dialogs form DB\n");
} else
Expand Down

0 comments on commit 2024061

Please sign in to comment.