Clear keepalive timeout in destructor

This commit is contained in:
Stéphane ANCELOT 2024-06-26 14:02:27 +02:00 committed by GitHub
parent 8454032e07
commit 062fb7d203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -634,8 +634,10 @@ export default class RFB extends EventTargetMixin {
throw e;
}
}
if (KEEP_ALIVE_INTERVAL >0 && this._keepaliveTimer) clearTimeout(this._keepaliveTimer)
clearTimeout(this._resizeTimeout);
clearTimeout(this._mouseMoveTimer);
Log.Debug("<< RFB.disconnect");
}