hpcu: eliminate infinite looping
This commit is contained in:
parent
e7ea35f304
commit
95f183aa48
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user