From: Ben Chalmers Date: Wed, 29 Mar 2017 14:01:20 +0000 (+0100) Subject: Avoid repeatedly acting as if returning from suspend X-Git-Tag: 9.0.0-rc1~37 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=46fe6241f834a05779efebbac0bdc1ee25b496c0;p=pvdrivers%2Fwin%2Fxeniface.git Avoid repeatedly acting as if returning from suspend Setting m_count to equal count means we will fall out of CheckSuspend early, if initiated by a timeout when a new suspend has not occurred. Signed-off-by : ben.chalmers@citrix.com --- diff --git a/src/xenagent/service.cpp b/src/xenagent/service.cpp index 7243fa4..9bc5c20 100644 --- a/src/xenagent/service.cpp +++ b/src/xenagent/service.cpp @@ -576,6 +576,7 @@ void CXenAgent::CheckSuspend() StopShutdownWatch(); StartShutdownWatch(); SetXenTime(); + m_count = count; } void CXenAgent::SetServiceStatus(DWORD state, DWORD exit /*= 0*/, DWORD hint /*= 0*/)