Skip to content

Commit

Permalink
dialog: do not try to replicate values if cluster not available
Browse files Browse the repository at this point in the history
Many thanks go to Rob Moore from Dubber for reporting this!
  • Loading branch information
razvancrainea committed Feb 23, 2024
1 parent d0f238c commit 4bf32ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_vals.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int store_dlg_value(struct dlg_cell *dlg, str *name, int_str *val, int type)
ret = store_dlg_value_unsafe(dlg,name,val,type);
lock_stop_write(dlg->vals_lock);

if (ret == 0 && dlg->state >= DLG_STATE_CONFIRMED)
if (ret == 0 && dlg->state >= DLG_STATE_CONFIRMED && dialog_repl_cluster)
replicate_dialog_value(dlg, name, val, type);

return ret;
Expand Down

0 comments on commit 4bf32ad

Please sign in to comment.