Fix deadlock

This commit is contained in:
sm
2017-01-16 19:00:25 -08:00
parent 7f3fe3ce4e
commit ad43f4e092
+1
View File
@@ -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
}