diff options
Diffstat (limited to 'libgo/go/netchan/import.go')
-rw-r--r-- | libgo/go/netchan/import.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/netchan/import.go b/libgo/go/netchan/import.go index 30edcd8..5db679a 100644 --- a/libgo/go/netchan/import.go +++ b/libgo/go/netchan/import.go @@ -213,8 +213,8 @@ func (imp *Importer) ImportNValues(name string, chT interface{}, dir Dir, size, if dir == Send { go func() { for i := 0; n == -1 || i < n; i++ { - val, closed := nch.recv() - if closed { + val, ok := nch.recv() + if !ok { if err = imp.encode(hdr, payClosed, nil); err != nil { impLog("error encoding client closed message:", err) } |