Skip to content

Commit

Permalink
typing: use void promise in timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed Jun 26, 2024
1 parent 73bc498 commit 36ca4d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ export class DefaultTyping extends EventEmitter<TypingEventsMap> implements Typi
*/
private startTypingTimer(): void {
this._logger.trace(`DefaultTyping.startTypingTimer();`);
// eslint-disable-next-line @typescript-eslint/no-misused-promises
this._timerId = setTimeout(async () => {
this._timerId = setTimeout(() => {
this._logger.debug(`DefaultTyping.startTypingTimer(); timeout expired`);
await this.stop();
void this.stop();
}, this._typingTimeoutMs);
}

Expand Down

0 comments on commit 36ca4d1

Please sign in to comment.