prosody: Get net.server via requre to avoid relying on globals

This commit is contained in:
Kim Alvefur 2018-04-05 19:34:51 +02:00
parent f1254ad149
commit f5d695c151

View file

@ -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);