diff --git a/core/rfb.js b/core/rfb.js index a608be4f..3d45da4f 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -1699,6 +1699,7 @@ export default class RFB extends EventTargetMixin { } _refreshCursor() { + if (this._rfb_connection_state !== 'connected') { return; } const image = this._shouldShowDotCursor() ? RFB.cursors.dot : this._cursorImage; this._cursor.change(image.rgbaPixels, image.hotx, image.hoty,