mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosody: Get net.server via requre to avoid relying on globals
This commit is contained in:
parent
f1254ad149
commit
f5d695c151
1 changed files with 1 additions and 0 deletions
1
prosody
1
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue