sttimer changes to V2 (#773)

This commit is contained in:
Justin Kotalik 2018-04-12 17:11:38 -07:00 committed by GitHub
parent 9c83280770
commit 4188d2fe68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -22,9 +22,7 @@ public:
if ( _pTimer )
{
CancelTimer();
CloseThreadpoolTimer( _pTimer );
_pTimer = NULL;
}
}
@ -107,9 +105,10 @@ public:
// have completed.
//
if (_pTimer != NULL)
WaitForThreadpoolTimerCallbacks( _pTimer, TRUE );
{
WaitForThreadpoolTimerCallbacks(_pTimer, TRUE);
}
_pTimer = NULL;
fInCanel = FALSE;
}