diff options
author | Kim Alvefur <zash@zash.se> | 2021-10-06 14:49:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-10-06 14:49:26 +0200 |
commit | aa20355fa2c1a65dce264c4a5e95fca8d789ecf2 (patch) | |
tree | 08cb8b18f562e9b511e09d164a87225b4e04ee14 /prosody | |
parent | 97daab1c756e842307741fa0b0122c0b2b9dd168 (diff) | |
download | prosody-aa20355fa2c1a65dce264c4a5e95fca8d789ecf2.tar.gz prosody-aa20355fa2c1a65dce264c4a5e95fca8d789ecf2.zip |
prosody: Expose main thread on the 'prosody' global
To allow running things in it.
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,6 +54,8 @@ local thread = async.runner(); thread:run(startup.prosody); +prosody.main_thread = thread; + local function loop() -- Error handler for errors that make it this far local function catch_uncaught_error(err) |