summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
Diffstat (limited to 'runsc')
-rw-r--r--runsc/container/container.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/container/container.go b/runsc/container/container.go
index 4b0037b4e..827528349 100644
--- a/runsc/container/container.go
+++ b/runsc/container/container.go
@@ -771,7 +771,7 @@ func (c *Container) changeStatus(s Status) {
}
case Stopped:
- if c.Status != Created && c.Status != Running && c.Status != Stopped {
+ if c.Status != Creating && c.Status != Created && c.Status != Running && c.Status != Stopped {
panic(fmt.Sprintf("invalid state transition: %v => %v", c.Status, s))
}