summaryrefslogtreecommitdiff
path: root/cel
diff options
context:
space:
mode:
Diffstat (limited to 'cel')
-rw-r--r--cel/cel_pgsql.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c
index 8db85d721..ceaa34e79 100644
--- a/cel/cel_pgsql.c
+++ b/cel/cel_pgsql.c
@@ -557,6 +557,10 @@ static int my_load_module(int reload)
return AST_MODULE_LOAD_SUCCESS;
}
+ if (reload) {
+ my_unload_module();
+ }
+
process_my_load_module(cfg);
ast_config_destroy(cfg);
@@ -575,7 +579,6 @@ static int load_module(void)
static int reload(void)
{
- my_unload_module();
return my_load_module(1);
}