Skip to content

Commit 5b9fecc

Browse files
committed
fix: abort controller before clearing
1 parent 1040150 commit 5b9fecc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/indexing/CodebaseIndexer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ export class CodebaseIndexer {
735735
});
736736
}
737737
if (this.indexingCancellationController === localController) {
738+
this.indexingCancellationController.abort(); // abort before clearing to prevent race condition (multiple starts)
738739
this.indexingCancellationController = undefined;
739740
}
740741
}

0 commit comments

Comments
 (0)