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 c44df11dd4
commit ecf4667626

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