accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp
changeset 22 effbe8362efc
parent 16 ef634fd8dac3
child 29 e5a0aab53f3f
equal deleted inserted replaced
16:ef634fd8dac3 22:effbe8362efc
   853 
   853 
   854     if( (EFalse == aAudioOutputStatus) && (KErrUnknown != aDbId) ) 
   854     if( (EFalse == aAudioOutputStatus) && (KErrUnknown != aDbId) ) 
   855         { 
   855         { 
   856         TInt index( TAccPolGenericIDArrayAccessor::FindWithUniqueIDL( 
   856         TInt index( TAccPolGenericIDArrayAccessor::FindWithUniqueIDL( 
   857                 genericIDArray, aDbId) ); 
   857                 genericIDArray, aDbId) ); 
   858         TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index); 
   858 				if(KErrNotFound != index)
       
   859 					{
       
   860         	TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index); 
       
   861         	}
   859         }
   862         }
   860 
   863 
   861     accMode = iPolicy->ResolveAccessoryModeL( genericIDArray, 
   864     accMode = iPolicy->ResolveAccessoryModeL( genericIDArray, 
   862                                               aDbId, 
   865                                               aDbId, 
   863                                               aAudioOutputStatus, 
   866                                               aAudioOutputStatus,