Skip to content

Commit

Permalink
Troves spawn cleanup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ambergamefam authored Dec 9, 2024
1 parent bc64df0 commit 2f3316c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/trove/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ end

function Trove._cleanupObject(_self: TroveInternal, object: any, cleanupMethod: string?)
if cleanupMethod == FN_MARKER then
object()
task.spawn(object)
elseif cleanupMethod == THREAD_MARKER then
pcall(task.cancel, object)
else
Expand Down

0 comments on commit 2f3316c

Please sign in to comment.