Skip to content

Commit

Permalink
fix(agent): register once lisenter instead of on.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Oct 25, 2024
1 parent 1dfa811 commit 8d6ac6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/tabby-agent/src/dataStore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class DataStore extends EventEmitter implements Feature {
if (this.lspInitialized) {
await sendUpdateRequest();
} else {
this.on("initialized", async () => {
this.once("initialized", async () => {
await sendUpdateRequest();
});
}
Expand Down

0 comments on commit 8d6ac6d

Please sign in to comment.