From 3682e51ba714f1fda62db5b6ba53c745b3b5798c Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Fri, 20 Apr 2007 21:14:27 +0000 Subject: [PATCH] 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 --- loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;