commsfwsupport/commselements/meshmachine/src/mm_node.cpp
changeset 65 41cc8e7ff496
parent 40 34fc115b8742
child 71 c5f26e3de961
equal deleted inserted replaced
40:34fc115b8742 65:41cc8e7ff496
   196 
   196 
   197 	//here we need to cancel all activities originating aClientId (except the current one)
   197 	//here we need to cancel all activities originating aClientId (except the current one)
   198 	__ASSERT_DEBUG(!client->RecipientId().IsNull(), User::Panic(KSpecAssert_ElemMeshMachNodC, 1));
   198 	__ASSERT_DEBUG(!client->RecipientId().IsNull(), User::Panic(KSpecAssert_ElemMeshMachNodC, 1));
   199 	AbortActivitiesOriginatedBy(aContext, client->RecipientId());
   199 	AbortActivitiesOriginatedBy(aContext, client->RecipientId());
   200 
   200 
       
   201     if (aContext.iSender == aClientId)
       
   202         {
       
   203         aContext.iPeer = NULL;
       
   204         }	
   201 	ANodeBase::RemoveClient(foundAt);
   205 	ANodeBase::RemoveClient(foundAt);
   202    	if (aContext.iSender == aClientId)
       
   203    	    {
       
   204    	    aContext.iPeer = NULL;
       
   205    	    }
       
   206 	}
   206 	}
   207 
   207 
   208 EXPORT_C CNodeActivityBase* AMMNodeBase::FindActivityById(TUint aActivityId) const
   208 EXPORT_C CNodeActivityBase* AMMNodeBase::FindActivityById(TUint aActivityId) const
   209 	{
   209 	{
   210 	CNodeActivityBase* a = NULL;
   210 	CNodeActivityBase* a = NULL;