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
commitf5d695c1513f83731fac154c397b602fa121a770 (patch)
tree19056d85abab9aeff6d74893bed72f56f950888e /prosody
parentf1254ad1494df964cdbf3a5d6641fe857fb1055b (diff)
downloadprosody-f5d695c1513f83731fac154c397b602fa121a770.tar.gz
prosody-f5d695c1513f83731fac154c397b602fa121a770.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);