]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commitdiff
No longer terminate xenagent for S3/S4 transition.
authorTroy Crosley <troycrosley@gmail.com>
Tue, 1 Sep 2020 17:27:38 +0000 (13:27 -0400)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 4 Sep 2020 09:56:14 +0000 (10:56 +0100)
Signed-off-by: Troy Crosley <troycrosley@gmail.com>
Reviewed-by: Owen Smith <owen.smith@citrix.com>
src/xenagent/service.cpp

index e5c817d825b7e8ed32dc6ce205abc2cdc47a7021..85fac63ccb3796ebd382eac82325f51d317b1621 100644 (file)
@@ -224,7 +224,7 @@ bool CXenIfaceCreator::CheckShutdown()
         if (!SetSystemPowerState(FALSE, FALSE)) {
             CXenAgent::Log("SetSystemPowerState failed %08x\n", GetLastError());
         }
-        return true;
+        return false;
     } else if (type == "s3") {
         m_device->StoreWrite("control/shutdown", "");
         m_agent.EventLog(EVENT_XENUSER_S3);
@@ -233,7 +233,7 @@ bool CXenIfaceCreator::CheckShutdown()
         if (!SetSuspendState(FALSE, TRUE, FALSE)) {
             CXenAgent::Log("SetSuspendState failed %08x\n", GetLastError());
         }
-        return true;
+        return false;
     }
 
     return false;