aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nexgb/xgb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/xgb.go b/nexgb/xgb.go
index b2bf84b..8baa208 100644
--- a/nexgb/xgb.go
+++ b/nexgb/xgb.go
@@ -303,8 +303,8 @@ func (c *Conn) readResponses() {
replyBytes []byte
)
- buf := make([]byte, 32)
for {
+ buf := make([]byte, 32)
err, event, seq = nil, nil, 0
if _, err := io.ReadFull(c.conn, buf); err != nil {