Permalink
Browse files

fixed nasty bug that made XGB not thread safe

  • Loading branch information...
1 parent a0f1a15 commit c1fa321d4ca763f62bc70504fc748a3b3e0e1c40 @BurntSushi committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xgb.go
View
2 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 {

0 comments on commit c1fa321

Please sign in to comment.