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
commite4f2d5b6cd12d6f850ab39acb7a311efd9a2aaec (patch)
tree2dbe4eb578cb9b2bdffa5f395573b3f6d3a6ea39 /prosody
parent094164e5f0bf835e4fd1dcefa57f3bb4add8325d (diff)
parent3c75f782eddde40791ffab6e1156d1b7861adb00 (diff)
downloadprosody-e4f2d5b6cd12d6f850ab39acb7a311efd9a2aaec.tar.gz
prosody-e4f2d5b6cd12d6f850ab39acb7a311efd9a2aaec.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