aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-11-16 15:24:36 +0100
committerKim Alvefur <zash@zash.se>2015-11-16 15:24:36 +0100
commitca7b1d853a52d85ea58ee3c66cf7e474c5c6e7c2 (patch)
tree1001fcca5e5248d820d3272388ce318d3d0e820d
parent5d077a0c17dbe89c2481cdebd18f4051dd2d10ae (diff)
downloadprosody-ca7b1d853a52d85ea58ee3c66cf7e474c5c6e7c2.tar.gz
prosody-ca7b1d853a52d85ea58ee3c66cf7e474c5c6e7c2.zip
prosody: Fix sleep call that relied on the no longer existing socket global
-rwxr-xr-xprosody4
1 files changed, 3 insertions, 1 deletions
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