aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-05 19:34:51 +0200
committerKim Alvefur <zash@zash.se>2018-04-05 19:34:51 +0200
commitecf466762645c971f0205582d84481474caa1c4e (patch)
tree19056d85abab9aeff6d74893bed72f56f950888e /prosody
parentc44df11dd4486e0f12b586e917b87eba751162c2 (diff)
downloadprosody-ecf466762645c971f0205582d84481474caa1c4e.tar.gz
prosody-ecf466762645c971f0205582d84481474caa1c4e.zip
prosody: Get net.server via requre to avoid relying on globals
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index 70d8905c..204fb36d 100755
--- a/prosody
+++ b/prosody
@@ -75,6 +75,7 @@ local function loop()
end
local sleep = require"socket".sleep;
+ local server = require "net.server";
while select(2, xpcall(server.loop, catch_uncaught_error)) ~= "quitting" do
sleep(0.2);