This commit is contained in:
wanyaoqi
2019-01-22 16:56:47 +08:00
committed by Zexi Li
parent ca725b7654
commit 2671ae6892
+4 -2
View File
@@ -507,7 +507,9 @@ func (s *SKVMGuestInstance) Delete(ctx context.Context, migrated bool) error {
func (s *SKVMGuestInstance) ExecStopTask(ctx context.Context, timeout int64) {
if s.IsRunning() && s.IsMonitorAlive() {
// Do Powerdown
s.monitor.SimpleCommand("system_powerdown", callback)
// Do Powerdown,
s.monitor.SimpleCommand("system_powerdown", s.OnPowerdownGuest)
} else {
s.CheckGuestRunningLater()
}
}