mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 16:35:44 +00:00
Fix the potential issue of causing deadlock problem
Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
parent
8cbe5833c7
commit
8ac659c6d2
|
@ -147,7 +147,10 @@ LOOP:
|
|||
|
||||
indexFile, err := rh.getIndexYamlWithNS(ns)
|
||||
if err != nil {
|
||||
if len(errorChan) == 0 {
|
||||
//One error is enough, it will be an exit signal to the worker loop
|
||||
errorChan <- err
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user