diff options
author | Kim Alvefur <zash@zash.se> | 2015-11-16 15:24:36 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-11-16 15:24:36 +0100 |
commit | ca7b1d853a52d85ea58ee3c66cf7e474c5c6e7c2 (patch) | |
tree | 1001fcca5e5248d820d3272388ce318d3d0e820d | |
parent | 5d077a0c17dbe89c2481cdebd18f4051dd2d10ae (diff) | |
download | prosody-ca7b1d853a52d85ea58ee3c66cf7e474c5c6e7c2.tar.gz prosody-ca7b1d853a52d85ea58ee3c66cf7e474c5c6e7c2.zip |
prosody: Fix sleep call that relied on the no longer existing socket global
-rwxr-xr-x | prosody | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |