From: Jason Parker Date: Fri, 20 Apr 2007 21:14:27 +0000 (+0000) Subject: Fix an issue that I noticed while looking over issue 9571. X-Git-Tag: 1.2.18~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3682e51ba714f1fda62db5b6ba53c745b3b5798c;p=thirdparty%2Fasterisk.git 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 --- diff --git a/loader.c b/loader.c index d9e0c88d02..c42d2b1372 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;