diff --git a/src/app/api/events/route.ts b/src/app/api/events/route.ts index f2525fc..7d64b08 100644 --- a/src/app/api/events/route.ts +++ b/src/app/api/events/route.ts @@ -77,15 +77,6 @@ export async function GET(request: Request): Promise { const lastTouchedPath = path.join(projectRoot, '.beads', 'last-touched'); let lastTouchedVersion: number | null = null; - let isPolling = false; - const pollLastTouched = async () => { - if (isPolling) { - return; - } - isPolling = true; - try { - const nextVersion = await readLastTouchedVersion(lastTouchedPath); - if (nextVersion === null) { let isPolling = false; const pollLastTouched = async () => { if (isPolling) { @@ -105,10 +96,6 @@ export async function GET(request: Request): Promise { lastTouchedVersion = nextVersion; write(toSseFrame(issuesEventBus.emit(projectRoot, lastTouchedPath, 'changed'))); } - } finally { - isPolling = false; - } - }; const touchedPoll = setInterval(() => { void pollLastTouched();