From aa20355fa2c1a65dce264c4a5e95fca8d789ecf2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 6 Oct 2021 14:49:26 +0200 Subject: prosody: Expose main thread on the 'prosody' global To allow running things in it. --- prosody | 2 ++ 1 file changed, 2 insertions(+) (limited to 'prosody') diff --git a/prosody b/prosody index dd0374d5..914396c2 100755 --- a/prosody +++ b/prosody @@ -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) -- cgit v1.2.3