diff --git a/hash.go b/hash.go index 02298ca..2b14853 100644 --- a/hash.go +++ b/hash.go @@ -38,6 +38,7 @@ func hsh(files []string) chan result { r := make(chan result) go func() { r <- result{err: fmt.Errorf("unsupported algorithm: %v", *algo)} + close(r) }() return r }