fix: clear interval variable after deleting timer

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-07-05 21:05:33 +02:00
parent ad04bb78a2
commit 9f1e0e48e3

View file

@ -105,6 +105,7 @@ export class MessageTransporter extends EventEmitter2<MessageEventPayloadMap> {
private stopSendingOfReadyRequests() { private stopSendingOfReadyRequests() {
if (this.readyInterval !== undefined) { if (this.readyInterval !== undefined) {
clearInterval(this.readyInterval) clearInterval(this.readyInterval)
this.readyInterval = undefined
} }
} }