Don't unload config on reload, when config has not changed.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 15 May 2008 17:58:22 +0000 (17:58 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 15 May 2008 17:58:22 +0000 (17:58 +0000)
(Closes issue #12652)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116631 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_csv.c

index 6188024..cb872f1 100644 (file)
@@ -104,7 +104,7 @@ static int load_config(int reload)
                ast_log(LOG_WARNING, "unable to load config: %s\n", config);
                return 0;
        } else if (cfg == CONFIG_STATUS_FILEUNCHANGED)
-               return 0;
+               return 1;
 
        if (!(var = ast_variable_browse(cfg, "csv"))) {
                ast_config_destroy(cfg);