]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commitdiff
Avoid repeatedly acting as if returning from suspend
authorBen Chalmers <ben.chalmers@citrix.com>
Wed, 29 Mar 2017 14:01:20 +0000 (15:01 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 29 Mar 2017 14:02:58 +0000 (15:02 +0100)
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> ben.chalmers@citrix.com

src/xenagent/service.cpp

index 7243fa4de91c5dd8712470d0f94a830a2bd20805..9bc5c20767454eaeae4760308d7655580a08e4cb 100644 (file)
@@ -576,6 +576,7 @@ void CXenAgent::CheckSuspend()
     StopShutdownWatch();
     StartShutdownWatch();
     SetXenTime();
+    m_count = count;
 }
 
 void CXenAgent::SetServiceStatus(DWORD state, DWORD exit /*= 0*/, DWORD hint /*= 0*/)