diff options
author | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-08 23:03:45 -0400 |
---|---|---|
committer | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-08 23:03:45 -0400 |
commit | 5d64f69030fd427f8518b8255f10fab3fc51b72a (patch) | |
tree | e841038e4420b2ddcfbeceffb083670d201a54d6 /nexgb | |
parent | 62b293c9374609afa344135693c33b9e808ceb72 (diff) | |
download | haven-5d64f69030fd427f8518b8255f10fab3fc51b72a.tar.gz haven-5d64f69030fd427f8518b8255f10fab3fc51b72a.tar.xz haven-5d64f69030fd427f8518b8255f10fab3fc51b72a.zip |
fixed nasty bug that made XGB not thread safe
Diffstat (limited to 'nexgb')
-rw-r--r-- | nexgb/xgb.go | 2 |
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 { |