1
0
mirror of https://github.com/Jguer/yay synced 2024-07-09 12:56:32 +00:00

Merge pull request #221 from Morganamilo/fix#200

Fix for yay locking when querying AUR
This commit is contained in:
Morgana 2018-03-08 02:28:23 +00:00 committed by GitHub
commit 0ae0df74f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,11 +336,13 @@ func aurInfo(names []string) ([]rpc.Pkg, error) {
makeRequest := func(n, max int) {
tempInfo, requestErr := rpc.Info(names[n:max])
if err != nil {
wg.Done()
return
}
if requestErr != nil {
//return info, err
err = requestErr
wg.Done()
return
}
mux.Lock()