aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-11-17 17:12:45 +0000
committerMatthew Wild <mwild1@gmail.com>2015-11-17 17:12:45 +0000
commitdc786b603f38d2ed33ec00133689fdd27aae3db5 (patch)
tree2dbe4eb578cb9b2bdffa5f395573b3f6d3a6ea39 /prosody
parentdd417c0f4a850be9280c2589f0a582aa0d7d566d (diff)
parenta799177379bbe294f1bb5fe1b8b800e2cee72738 (diff)
downloadprosody-dc786b603f38d2ed33ec00133689fdd27aae3db5.tar.gz
prosody-dc786b603f38d2ed33ec00133689fdd27aae3db5.zip
Merge 0.10->trunk
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