Properly load say.conf upon reload of module app_playback.
[asterisk/asterisk.git] / apps / app_playback.c
index 12b1ff6..148657d 100644 (file)
@@ -513,8 +513,8 @@ static int reload(void)
        if (say_cfg) {
                ast_config_destroy(say_cfg);
                ast_log(LOG_NOTICE, "Reloading say.conf\n");
-               say_cfg = newcfg;
        }
+       say_cfg = newcfg;
 
        if (say_cfg) {
                for (v = ast_variable_browse(say_cfg, "general"); v ; v = v->next) {