]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix handling of ExtendedDesktopSize errors
authorPierre Ossman <ossman@cendio.se>
Thu, 7 Sep 2017 14:52:21 +0000 (16:52 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 7 Sep 2017 15:18:25 +0000 (17:18 +0200)
core/rfb.js

index 57f3a8e50e65e1a01de5d0c3f578b0d4ff076c24..2d937d1f3911850b3159128b00c95a83898c5a2a 100644 (file)
@@ -2360,10 +2360,10 @@ RFB.encodingHandlers = {
             }
             this._notification("Server did not accept the resize request: "
                                + msg, 'normal');
-            return true;
+        } else {
+            this._resize(this._FBU.width, this._FBU.height);
         }
 
-        this._resize(this._FBU.width, this._FBU.height);
         this._FBU.bytes = 0;
         this._FBU.rects -= 1;
         return true;