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 | cb6f7a82c99c6956c5cd44f35d603343aa4c17db (patch) | |
tree | 1001fcca5e5248d820d3272388ce318d3d0e820d | |
parent | 57fe905a8c3eeffb507a0967512a4caccb0e882b (diff) | |
download | prosody-cb6f7a82c99c6956c5cd44f35d603343aa4c17db.tar.gz prosody-cb6f7a82c99c6956c5cd44f35d603343aa4c17db.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 |