]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix an issue that I noticed while looking over issue 9571.
authorJason Parker <jparker@digium.com>
Fri, 20 Apr 2007 21:14:27 +0000 (21:14 +0000)
committerJason Parker <jparker@digium.com>
Fri, 20 Apr 2007 21:14:27 +0000 (21:14 +0000)
The reload timestamp was getting set after reloading the built-in stuff, and before the modules.

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

loader.c

index d9e0c88d02a92df9d9148253e151f56d72890cb7..c42d2b13720a364ff578c85535eb07016a512b69 100644 (file)
--- a/loader.c
+++ b/loader.c
@@ -215,6 +215,8 @@ int ast_module_reload(const char *name)
                ast_verbose("The previous reload command didn't finish yet\n");
                return -1;
        }
+       time(&ast_lastreloadtime);
+
        if (!name || !strcasecmp(name, "extconfig")) {
                read_config_maps();
                reloaded = 2;
@@ -239,7 +241,6 @@ int ast_module_reload(const char *name)
                dnsmgr_reload();
                reloaded = 2;
        }
-       time(&ast_lastreloadtime);
 
        ast_mutex_lock(&modlock);
        oldversion = modlistver;