Software /
code /
prosody
Changeset
6921:45fa2e554c79
prosody: Fix sleep call that relied on the no longer existing socket global
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 16 Nov 2015 15:24:36 +0100 |
parents | 6919:ab6c57633ce5 |
children | 6924:c37ad3e1fdd9 |
files | prosody |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Mon Nov 09 13:40:06 2015 +0100 +++ b/prosody Mon Nov 16 15:24:36 2015 +0100 @@ -372,8 +372,10 @@ 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