Update to current version of Go library.
From-SVN: r171427
This commit is contained in:
parent
7114321ee4
commit
8039ca76a5
168 changed files with 8977 additions and 2743 deletions
|
@ -306,8 +306,8 @@ func recvValues(multiplex chan<- interface{}, channel interface{}) {
|
|||
c := reflect.NewValue(channel).(*reflect.ChanValue)
|
||||
|
||||
for {
|
||||
v := c.Recv()
|
||||
if c.Closed() {
|
||||
v, ok := c.Recv()
|
||||
if !ok {
|
||||
multiplex <- channelClosed{channel}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue