bearermanagement/mpm/src/mpmserver.cpp
branchRCL_3
changeset 36 04408506c6e0
parent 26 0a9e01492035
child 45 4c83dcfb6f1a
equal deleted inserted replaced
26:0a9e01492035 36:04408506c6e0
   960     MPMLOGSTRING( "CMPMServer::RemoveSession" )
   960     MPMLOGSTRING( "CMPMServer::RemoveSession" )
   961 
   961 
   962     TInt index = iSessions.Find( aSession );
   962     TInt index = iSessions.Find( aSession );
   963     if ( index != KErrNotFound )
   963     if ( index != KErrNotFound )
   964         {
   964         {
       
   965         if ( Events() )
       
   966             {
       
   967             // Cancel WLAN scan request if one exists
       
   968             TRAP_IGNORE( Events()->CancelScanL( iSessions[index] ) )
       
   969             }
   965         iSessions.Remove( index );
   970         iSessions.Remove( index );
   966         }
   971         }
   967     }
   972     }
   968 
   973 
   969 // -----------------------------------------------------------------------------
   974 // -----------------------------------------------------------------------------