]> source.dussan.org Git - tigervnc.git/commitdiff
Fix infinite update caused by b64dbf2
authorPierre Ossman <ossman@cendio.se>
Tue, 23 Jun 2015 13:29:37 +0000 (15:29 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 23 Jun 2015 13:31:40 +0000 (15:31 +0200)
The bug fix in b64dbf2 didn't account for the proper request
region in the case of continuous updates. Make sure we use the
proper variable for which region we've sent updates for.

(cherry picked from commit 3c56d4f3c7fc2d706acd114d1abb04e9a338dbea)

common/rfb/VNCSConnectionST.cxx

index c63e6b621f104574605e40eeda610acab2dfd8aa..49975cbfc64e4911fa6604a4a3c7d5a3e6ccb289 100644 (file)
@@ -1058,7 +1058,7 @@ void VNCSConnectionST::writeFramebufferUpdate()
 
     // The request might be for just part of the screen, so we cannot
     // just clear the entire update tracker.
-    updates.subtract(requested);
+    updates.subtract(req);
 
     requested.clear();
   }