Merge pull request #473 from lifupan/hyper-integration

api: To stop its monitor after a sandbox paused
This commit is contained in:
Sebastien Boeuf
2018-07-09 19:28:01 -07:00
committed by GitHub

View File

@@ -1203,6 +1203,14 @@ func (s *Sandbox) Pause() error {
return err
}
//After the sandbox is paused, it's needed to stop its monitor,
//Otherwise, its monitors will receive timeout errors if it is
//paused for a long time, thus its monitor will not tell it's a
//crash caused timeout or just a paused timeout.
if s.monitor != nil {
s.monitor.stop()
}
return s.pauseSetStates()
}