flip display only if tab is visible (fixes memory leak on inactive tab), fixes issue #1302
This commit is contained in:
parent
412d93060d
commit
93bccbc1d2
|
|
@ -1483,7 +1483,10 @@ export default class RFB extends EventTargetMixin {
|
||||||
this._FBU.encoding = null;
|
this._FBU.encoding = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._display.flip();
|
if (!document.hidden) {
|
||||||
|
this._display.flip();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return true; // We finished this FBU
|
return true; // We finished this FBU
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue