Skip to content

Commit

Permalink
Merge pull request BurntSushi#31 from aarzilli/master
Browse files Browse the repository at this point in the history
sendRequest reads req.buf after closing req.seq
  • Loading branch information
BurntSushi committed Nov 20, 2015
2 parents 3ac861b + ebcb453 commit d3d84af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xgb.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ func (c *Conn) sendRequests() {
}
}
req.cookie.Sequence = c.newSequenceId()
close(req.seq)
c.cookieChan <- req.cookie
c.writeBuffer(req.buf)
close(req.seq)
}
response := make(chan struct{})
c.closing <- response
Expand Down

0 comments on commit d3d84af

Please sign in to comment.