aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
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
commitcb6f7a82c99c6956c5cd44f35d603343aa4c17db (patch)
tree1001fcca5e5248d820d3272388ce318d3d0e820d /prosody
parent57fe905a8c3eeffb507a0967512a4caccb0e882b (diff)
downloadprosody-cb6f7a82c99c6956c5cd44f35d603343aa4c17db.tar.gz
prosody-cb6f7a82c99c6956c5cd44f35d603343aa4c17db.zip
prosody: Fix sleep call that relied on the no longer existing socket global
Diffstat (limited to 'prosody')
-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