diff prosody @ 14080:973609bad40a

util.time: Import sleep from luasocket We might not want to use the full LuaSocket for such a tiny function which will never change. This drops win32 support but that should be fine.
author Link Mauve <linkmauve@linkmauve.fr>
date Fri, 30 Jan 2026 14:08:53 +0100
parents af28d6debaca
children
line wrap: on
line diff
--- a/prosody	Fri Jan 30 14:44:04 2026 +0100
+++ b/prosody	Fri Jan 30 14:08:53 2026 +0100
@@ -85,7 +85,7 @@
 		prosody.events.fire_event("very-bad-error", {error = err, traceback = traceback});
 	end
 
-	local sleep = require"socket".sleep;
+	local sleep = require "prosody.util.time".sleep;
 	local server = require "prosody.net.server";
 
 	while select(2, xpcall(server.loop, catch_uncaught_error)) ~= "quitting" do