dm
/
cs
forked from sm/cs
1
0
Fork 0

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
1 changed files with 1 additions and 0 deletions

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
}