Kaydet (Commit) 6de91546 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make sure _nEventId gets reset after calling RemoveUserEvent

Change-Id: I8f90fb809d5275e8a74964776f01f4d563f2e657
üst 2de1b86d
...@@ -48,13 +48,7 @@ bAllowDoubles ...@@ -48,13 +48,7 @@ bAllowDoubles
DBG_ASSERT( bAllowDoubles || DBG_ASSERT( bAllowDoubles ||
( !_nEventId && ( !_pIdle || !_pIdle->IsActive() ) ), ( !_nEventId && ( !_pIdle || !_pIdle->IsActive() ) ),
"Schon ein Call unterwegs" ); "Schon ein Call unterwegs" );
if( _nEventId ) ClearPendingCall();
{
if( _pMutex ) _pMutex->acquire();
Application::RemoveUserEvent( _nEventId );
if( _pMutex ) _pMutex->release();
}
if( _pIdle )_pIdle->Stop();
if( bUseTimer ) if( bUseTimer )
{ {
if( !_pIdle ) if( !_pIdle )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment