hpcu: eliminate infinite looping
This commit is contained in:
		@@ -92,7 +92,7 @@ func getProperty(window xproto.Window, property xproto.Atom) (
 | 
				
			|||||||
	// chunking the requests. This has a cost of losing atomicity, although
 | 
						// chunking the requests. This has a cost of losing atomicity, although
 | 
				
			||||||
	// it shouldn't pose a problem except for timeout-caused INCR races.
 | 
						// it shouldn't pose a problem except for timeout-caused INCR races.
 | 
				
			||||||
	var result xproto.GetPropertyReply
 | 
						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 */
 | 
							reply, err := xproto.GetProperty(X, false, /* delete */
 | 
				
			||||||
			window, property, xproto.GetPropertyTypeAny,
 | 
								window, property, xproto.GetPropertyTypeAny,
 | 
				
			||||||
			uint32(len(result.Value))/4,
 | 
								uint32(len(result.Value))/4,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user