aboutsummaryrefslogtreecommitdiffstats
path: root/loader.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-20 21:14:27 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-20 21:14:27 +0000
commit281f08b15053292826d6ac4ed7f21d3fb0b5ca3c (patch)
tree2d599fe60848b0302916bf7dd041965f50f10b0a /loader.c
parent6d9a667746c2deab839c3a960dabf50fa244dc3c (diff)
Fix an issue that I noticed while looking over issue 9571.
The reload timestamp was getting set after reloading the built-in stuff, and before the modules. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61704 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loader.c b/loader.c
index d9e0c88d0..c42d2b137 100644
--- 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;