bluetoothengine/bteng/src/btengserver.cpp
changeset 25 9c3798b88e30
parent 23 988cddd6adbd
child 16 b23265fb36da
equal deleted inserted replaced
24:8930e1d1d530 25:9c3798b88e30
   333 // ---------------------------------------------------------------------------
   333 // ---------------------------------------------------------------------------
   334 //
   334 //
   335 void CBTEngServer::QueueTimer( CBTEngServer::TTimerQueued aTimer, TInt64 aInterval )
   335 void CBTEngServer::QueueTimer( CBTEngServer::TTimerQueued aTimer, TInt64 aInterval )
   336     {
   336     {
   337     TRACE_FUNC_ARG( ( _L( "queueing timer %d" ), (TInt) aTimer ) )
   337     TRACE_FUNC_ARG( ( _L( "queueing timer %d" ), (TInt) aTimer ) )
       
   338     __ASSERT_DEBUG( iTimer, PanicServer( EBTEngPanicMemberVarIsNull ) );
   338     iTimerQueued |= aTimer;
   339     iTimerQueued |= aTimer;
   339     TTimeIntervalMicroSeconds interval( aInterval );
   340     TTimeIntervalMicroSeconds interval( aInterval );
   340     switch( aTimer )
   341     switch( aTimer )
   341         {
   342         {
   342         case EScanModeTimer:
   343         case EScanModeTimer:
   362 // ---------------------------------------------------------------------------
   363 // ---------------------------------------------------------------------------
   363 //
   364 //
   364 void CBTEngServer::RemoveTimer( CBTEngServer::TTimerQueued aTimer )
   365 void CBTEngServer::RemoveTimer( CBTEngServer::TTimerQueued aTimer )
   365     {
   366     {
   366     TRACE_FUNC_ARG( ( _L( "removing timer %d" ), (TInt) aTimer ) )
   367     TRACE_FUNC_ARG( ( _L( "removing timer %d" ), (TInt) aTimer ) )
       
   368     if(!iTimer)
       
   369         {
       
   370         return; // not fully constructed yet, don't do anything
       
   371         }
   367     iTimerQueued &= ~aTimer;
   372     iTimerQueued &= ~aTimer;
   368     // Timers can be removed without being queued, no need to check.
   373     // Timers can be removed without being queued, no need to check.
   369     switch( aTimer )
   374     switch( aTimer )
   370         {
   375         {
   371         case EScanModeTimer:
   376         case EScanModeTimer: