We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e80394 commit e060226Copy full SHA for e060226
src/ReplicatedStorage/Signal.lua
@@ -274,14 +274,17 @@ function Signal:Fire(...)
274
end
275
276
function Signal:DisconnectAll()
277
+ self._firing += 1 --\\ Tag it as firing, we need _next in this case.
278
+
279
local connection = self._head
- local nextConnection = connection._next
280
while connection ~= nil do
- nextConnection = connection._next
281
connection:Disconnect()
282
- connection = nextConnection
283
+ connection = connection._next
284
285
self._head = nil
286
287
+ t_defer(CleanDisconnections, self)
288
289
290
function Signal:Destroy()
0 commit comments