mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
updated tests and added check in connections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user