Added connection:hasConnections()
This commit is contained in:
parent
48bba84c08
commit
72e24e8a9b
@ -242,6 +242,9 @@ function multi:newConnection(protect,func,kill)
|
|||||||
local protect=protect or false
|
local protect=protect or false
|
||||||
local connections={}
|
local connections={}
|
||||||
c.FC=0
|
c.FC=0
|
||||||
|
function c:hasConnections()
|
||||||
|
return #call_funcs~=0
|
||||||
|
end
|
||||||
function c:holdUT(n)
|
function c:holdUT(n)
|
||||||
local n=n or 0
|
local n=n or 0
|
||||||
self.waiting=true
|
self.waiting=true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user