datacommsserver/esockserver/MobilityCoreProviders/src/mobilitycpractivities.cpp
branchRCL_3
changeset 18 9644881fedd0
parent 17 9ddb1d67ebaf
equal deleted inserted replaced
17:9ddb1d67ebaf 18:9644881fedd0
   177 	{
   177 	{
   178 	RNodeInterface* cp = iNode.GetFirstClient<TDefaultClientMatchPolicy>(TClientType(TCFClientType::ECtrlProvider));
   178 	RNodeInterface* cp = iNode.GetFirstClient<TDefaultClientMatchPolicy>(TClientType(TCFClientType::ECtrlProvider));
   179 	__ASSERT_DEBUG(cp, User::Panic(KSpecAssert_ESockMbCrCPRAct, 4)); //We are a Cpr, must exist.
   179 	__ASSERT_DEBUG(cp, User::Panic(KSpecAssert_ESockMbCrCPRAct, 4)); //We are a Cpr, must exist.
   180 
   180 
   181 	//PostedTo() could be our service provider or possibly other peer
   181 	//PostedTo() could be our service provider or possibly other peer
   182 	if (PostedToId() != cp->RecipientId())
   182 	if (PostedToPeer() != cp)
   183 		{
   183 		{
   184 		cp->PostMessage(TNodeCtxId(ActivityId(), iNode.Id()),
   184 		cp->PostMessage(TNodeCtxId(ActivityId(), iNode.Id()),
   185 			TEBase::TCancel().CRef());
   185 			TEBase::TCancel().CRef());
   186 		}
   186 		}
   187 
   187