mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #40588 from sfzhu93/Double_RLock
plugin: fix a double RLock bug
This commit is contained in:
commit
38f52c9fec
1 changed files with 0 additions and 2 deletions
|
@ -188,9 +188,7 @@ func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er
|
|||
* bypassing the daemon. For such tests, this check is necessary.
|
||||
*/
|
||||
if ps != nil {
|
||||
ps.RLock()
|
||||
result = ps.getAllByCap(capability)
|
||||
ps.RUnlock()
|
||||
}
|
||||
|
||||
// Lookup with legacy model
|
||||
|
|
Loading…
Add table
Reference in a new issue