From: Pierre Ossman Date: Tue, 23 Jun 2015 13:29:37 +0000 (+0200) Subject: Fix infinite update caused by b64dbf2 X-Git-Tag: v1.5.0~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=916af817796c1da121c1ca939dafe00d8069f413;p=tigervnc.git Fix infinite update caused by b64dbf2 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) --- diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index c63e6b62..49975cbf 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -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(); }