updated tests and added check in connections

This commit is contained in:
2026-06-09 23:04:02 -07:00
parent 0796788fcb
commit 8b5d10cbb6
5 changed files with 6 additions and 4 deletions
+3
View File
@@ -577,6 +577,9 @@ function multi:newConnection(protect,func,kill)
end
function c:Connect(func, name)
if func == nil then
multi.error("You must provide a valid function when calling a connection")
end
self.Parent.connection_subscriptions = self.Parent.connection_subscriptions + 1
local th
if thread.getRunningThread then