diff --git a/main.go b/main.go index c1b4d1d..29d9120 100644 --- a/main.go +++ b/main.go @@ -160,9 +160,9 @@ func writePipe(pipe chan interface{}) (ok bool) { if pipe != nil { for { select { - case item, ok := <-pipe: - if !ok { - return false + case item, more := <-pipe: + if !more { + return okFlag } else { switch item.(type) {