mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 61704 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r61704 | qwell | 2007-04-20 16:14:27 -0500 (Fri, 20 Apr 2007) | 4 lines 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.4@61705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -530,6 +530,7 @@ 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; /* reload already in progress */
|
return -1; /* reload already in progress */
|
||||||
}
|
}
|
||||||
|
ast_lastreloadtime = time(NULL);
|
||||||
|
|
||||||
/* Call "predefined" reload here first */
|
/* Call "predefined" reload here first */
|
||||||
for (i = 0; reload_classes[i].name; i++) {
|
for (i = 0; reload_classes[i].name; i++) {
|
||||||
@@ -538,7 +539,6 @@ int ast_module_reload(const char *name)
|
|||||||
res = 2; /* found and reloaded */
|
res = 2; /* found and reloaded */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ast_lastreloadtime = time(NULL);
|
|
||||||
|
|
||||||
if (name && res) {
|
if (name && res) {
|
||||||
ast_mutex_unlock(&reloadlock);
|
ast_mutex_unlock(&reloadlock);
|
||||||
|
Reference in New Issue
Block a user