]> source.dussan.org Git - tigervnc.git/commitdiff
Flush socket after ever rect
authorPierre Ossman <ossman@cendio.se>
Fri, 29 Apr 2016 12:27:08 +0000 (14:27 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 29 Apr 2016 12:27:08 +0000 (14:27 +0200)
This makes sure we keep the socket busy even if one rect takes some
time to encode.

common/rfb/SMsgWriter.cxx

index e42150864586ffc1beb88e179ca3ed35bbe75f94..5040b6580da9b66a52c3807f7dd69d4f7c88c143 100644 (file)
@@ -285,6 +285,7 @@ void SMsgWriter::startRect(const Rect& r, int encoding)
 
 void SMsgWriter::endRect()
 {
+  os->flush();
 }
 
 void SMsgWriter::startMsg(int type)