diff --git a/src/profilingUtils.ts b/src/profilingUtils.ts index 3aad403..9a5952d 100644 --- a/src/profilingUtils.ts +++ b/src/profilingUtils.ts @@ -13,6 +13,7 @@ let runId = -1; * The call that was chosen to be the dummy function is `system.currentTick`. */ export function addIdleDummy() { + if (runId !== -1) return; runId = system.runInterval(idle, 1); }