dm/cs
1
0
forked from sm/cs

Fix deadlock

This commit is contained in:
Stephen McQuay 2017-01-16 19:00:25 -08:00
parent 7f3fe3ce4e
commit ad43f4e092
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D

View File

@ -38,6 +38,7 @@ func hsh(files []string) chan result {
r := make(chan result) r := make(chan result)
go func() { go func() {
r <- result{err: fmt.Errorf("unsupported algorithm: %v", *algo)} r <- result{err: fmt.Errorf("unsupported algorithm: %v", *algo)}
close(r)
}() }()
return r return r
} }