plugins/mod_c2s.lua
changeset 12313 926a6c5d13e7
parent 12306 6a8c680b8677
child 12315 bc30e1b9ad89
--- a/plugins/mod_c2s.lua	Mon Feb 21 11:24:58 2022 +0100
+++ b/plugins/mod_c2s.lua	Tue Feb 22 12:35:31 2022 +0100
@@ -446,7 +446,7 @@
 
 	-- Wait for them to close properly if they haven't already
 	if next(sessions) ~= nil then
-		add_task(stream_close_timeout+1, done);
+		add_task(stream_close_timeout+1, function () done() end);
 		module:log("info", "Waiting for sessions to close");
 		wait();
 	end