Changeset

8726:fbb6751dbe85

prosody: Get net.server via requre to avoid relying on globals
author Kim Alvefur <zash@zash.se>
date Thu, 05 Apr 2018 19:34:51 +0200
parents 8725:ced09d7d7c96
children 8727:285075a27f28
files prosody
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Sat Mar 24 18:27:34 2018 +0100
+++ b/prosody	Thu Apr 05 19:34:51 2018 +0200
@@ -75,6 +75,7 @@
 	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);