accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp
branchRCL_3
changeset 15 21e939dd208a
parent 11 8d1d8440b626
child 23 66ecddbca914
equal deleted inserted replaced
11:8d1d8440b626 15:21e939dd208a
   764 
   764 
   765     if( (EFalse == aAudioOutputStatus) && (KErrUnknown != aDbId) ) 
   765     if( (EFalse == aAudioOutputStatus) && (KErrUnknown != aDbId) ) 
   766         { 
   766         { 
   767         TInt index( TAccPolGenericIDArrayAccessor::FindWithUniqueIDL( 
   767         TInt index( TAccPolGenericIDArrayAccessor::FindWithUniqueIDL( 
   768                 genericIDArray, aDbId) ); 
   768                 genericIDArray, aDbId) ); 
   769         TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index); 
   769 				if(KErrNotFound != index)
       
   770 					{
       
   771         	TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index); 
       
   772         	}
   770         }
   773         }
   771 
   774 
   772     accMode = iPolicy->ResolveAccessoryModeL( genericIDArray, 
   775     accMode = iPolicy->ResolveAccessoryModeL( genericIDArray, 
   773                                               aDbId, 
   776                                               aDbId, 
   774                                               aAudioOutputStatus, 
   777                                               aAudioOutputStatus,