From 95f183aa480733d7f7f4221e91df4570433c2e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Mon, 4 Feb 2019 09:27:10 +0100 Subject: [PATCH] hpcu: eliminate infinite looping --- hpcu/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpcu/main.go b/hpcu/main.go index 3aebb62..3508f63 100644 --- a/hpcu/main.go +++ b/hpcu/main.go @@ -92,7 +92,7 @@ func getProperty(window xproto.Window, property xproto.Atom) ( // chunking the requests. This has a cost of losing atomicity, although // it shouldn't pose a problem except for timeout-caused INCR races. var result xproto.GetPropertyReply - for result.Length == 0 || result.BytesAfter > 0 { + for (result.Sequence == 0 && result.Length == 0) || result.BytesAfter > 0 { reply, err := xproto.GetProperty(X, false, /* delete */ window, property, xproto.GetPropertyTypeAny, uint32(len(result.Value))/4,