diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2013-02-07 22:11:35 +0100 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2013-02-07 22:11:35 +0100 |
commit | 62d876cf007b26c6167c3b9693f247e62a5dabf3 (patch) | |
tree | fc807f8aadd3f1de3a5cefdcb347ec3c04ff4a90 /plugins/mod_admin_adhoc.lua | |
parent | cc897c6e9f014a7a341b78b8e2a0183d3405d2dd (diff) | |
download | prosody-62d876cf007b26c6167c3b9693f247e62a5dabf3.tar.gz prosody-62d876cf007b26c6167c3b9693f247e62a5dabf3.zip |
mod_admin_adhoc: Fix 'Shut down service' command
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index ed65e434..f136eb46 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -671,7 +671,7 @@ function shut_down_service_handler(self, data, state) send_to_online(message); end - timer_add_task(tonumber(fields.delay or "5"), prosody.shutdown); + timer_add_task(tonumber(fields.delay or "5"), function(time) prosody.shutdown("Shutdown by adhoc command") end); return { status = "completed", info = "Server is about to shut down" }; else |