commsfwsupport/commselements/meshmachine/src/mm_node.cpp
changeset 50 afebdb533a85
parent 32 d2396c80c344
child 68 5da8188e392b
equal deleted inserted replaced
33:8fc8de15e664 50:afebdb533a85
   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;