From 5d64f69030fd427f8518b8255f10fab3fc51b72a Mon Sep 17 00:00:00 2001 From: "Andrew Gallant (Ocelot)" Date: Tue, 8 May 2012 23:03:45 -0400 Subject: fixed nasty bug that made XGB not thread safe --- nexgb/xgb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-70-g09d2