From cb6f7a82c99c6956c5cd44f35d603343aa4c17db Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 16 Nov 2015 15:24:36 +0100 Subject: prosody: Fix sleep call that relied on the no longer existing socket global --- prosody | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prosody b/prosody index 61be6c2e..47998583 100755 --- a/prosody +++ b/prosody @@ -372,8 +372,10 @@ function loop() prosody.events.fire_event("very-bad-error", {error = err, traceback = traceback}); end + local sleep = require"socket".sleep; + while select(2, xpcall(server.loop, catch_uncaught_error)) ~= "quitting" do - socket.sleep(0.2); + sleep(0.2); end end -- cgit v1.2.3