From 062fb7d203cb774cbd5639d66d17c20b3ae07630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20ANCELOT?= Date: Wed, 26 Jun 2024 14:02:27 +0200 Subject: [PATCH] Clear keepalive timeout in destructor --- core/rfb.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/rfb.js b/core/rfb.js index 9448214c..f45078b8 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -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"); }