From 2f3316cf634517b74f72a2ef0e29b124adadc289 Mon Sep 17 00:00:00 2001 From: Amber Grace <122126644+ambergamefam@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:53:06 -0700 Subject: [PATCH] Troves spawn cleanup functions --- modules/trove/init.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/trove/init.luau b/modules/trove/init.luau index 7bd29174..c178e585 100644 --- a/modules/trove/init.luau +++ b/modules/trove/init.luau @@ -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