equal
deleted
inserted
replaced
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 // ----------------------------------------------------------------------------- |