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: https://origsvn.digium.com/svn/asterisk/branches/1.2@61704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Jason Parker 19 years ago
parent c28413ff94
commit 3682e51ba7

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

Loading…
Cancel
Save