mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Allow switch to anything from nullState
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -214,12 +214,7 @@ func (n *nullState) status() Status {
|
||||
}
|
||||
|
||||
func (n *nullState) transition(s containerState) error {
|
||||
switch s.(type) {
|
||||
case *restoredState:
|
||||
n.c.state = s
|
||||
default:
|
||||
// do nothing for null states
|
||||
}
|
||||
n.c.state = s
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user