mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Unlock lifecycle.mu in StartContainer error path.
PiperOrigin-RevId: 526132558
This commit is contained in:
committed by
gVisor bot
parent
e9b8e1b74c
commit
662298fd58
@@ -311,6 +311,7 @@ func (l *Lifecycle) StartContainer(args *StartContainerArgs, _ *uint32) error {
|
||||
}
|
||||
|
||||
if _, ok := l.containerMap[initArgs.ContainerID]; ok {
|
||||
l.mu.Unlock()
|
||||
return fmt.Errorf("container id: %v already exists", initArgs.ContainerID)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user