diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-29 16:36:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-29 16:36:18 +0200 |
commit | c67280b951d18b3ec4311a858977c9f970db9a1f (patch) | |
tree | f3fbfc88134a71eef95ef8fdf26cde91a985f35e | |
parent | 8a2aef3598753c98f4e060c17fa846deb49e63fe (diff) | |
download | prosody-c67280b951d18b3ec4311a858977c9f970db9a1f.tar.gz prosody-c67280b951d18b3ec4311a858977c9f970db9a1f.zip |
util.startup: Initialize the 'prosody' global earlier (various things needs the global util.events instance)
-rw-r--r-- | util/startup.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/startup.lua b/util/startup.lua index a33f3f3b..69511bf9 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -496,8 +496,8 @@ end -- prosodyctl only function startup.prosodyctl() - startup.read_config(); startup.init_global_state(); + startup.read_config(); startup.setup_plugindir(); startup.setup_datadir(); startup.chdir(); @@ -517,13 +517,13 @@ end function startup.prosody() -- These actions are in a strict order, as many depend on -- previous steps to have already been performed + startup.init_global_state(); startup.read_config(); startup.sanity_check(); startup.sandbox_require(); startup.set_function_metatable(); startup.check_dependencies(); startup.load_libraries(); - startup.init_global_state(); startup.setup_plugindir(); startup.setup_datadir(); startup.init_logging(); |