Skip to content

Commit

Permalink
Update dialog.c
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmeyerhoff authored Feb 27, 2023
1 parent 639edf2 commit 4a2a0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ static void rpc_load_dlg_db(int sender, void *param)

static int child_init(int rank)
{
if ( (dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED ) &&
if ( (dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED || dlg_db_mode==DB_MODE_SHUTDOWN ) &&
(rank>=1 || rank==PROC_MODULE) ) {
if ( dlg_connect_db(&db_url)<0 ) {
LM_ERR("failed to connect to database (rank=%d)\n",rank);
Expand Down

0 comments on commit 4a2a0a9

Please sign in to comment.