networkcontrol/ipnetworklayer/src/IPProtoCprStates.cpp
branchRCL_3
changeset 40 d566d76acea1
parent 12 e9cc36e353d4
child 52 3652a10b304a
child 68 1697cc2ba93d
equal deleted inserted replaced
27:4214adf9e0d3 40:d566d76acea1
   148 	ASSERT(iContext.iNodeActivity);
   148 	ASSERT(iContext.iNodeActivity);
   149 
   149 
   150 	// stop has been caused by timer expiry, remove self from originators list, because we
   150 	// stop has been caused by timer expiry, remove self from originators list, because we
   151 	// are not waiting for TStopped and in certain situations it would arrive after the node has been
   151 	// are not waiting for TStopped and in certain situations it would arrive after the node has been
   152 	// destroyed
   152 	// destroyed
   153 	if (iContext.Node().iTimerExpired)
   153 	if (iContext.Node().iTimerStopped)
   154 		{
   154 		{
   155 		TInt selfidx = iContext.iNodeActivity->FindOriginator(iContext.Node().SelfInterface());
   155 		TInt selfidx = iContext.iNodeActivity->FindOriginator(iContext.Node().SelfInterface());
   156 		ASSERT(selfidx != KErrNotFound);
   156 		ASSERT(selfidx != KErrNotFound);
   157 		iContext.iNodeActivity->RemoveOriginator(selfidx);
   157 		iContext.iNodeActivity->RemoveOriginator(selfidx);
   158 		}
   158 		}
   376  	//Set the idle timers
   376  	//Set the idle timers
   377 	iContext.Node().EnableTimers();
   377 	iContext.Node().EnableTimers();
   378 	iContext.Node().SetUsageProfile(KConnProfileMedium);
   378 	iContext.Node().SetUsageProfile(KConnProfileMedium);
   379 	iContext.Node().SetTimerMode(CIPProtoConnectionProvider::ETimerMedium);
   379 	iContext.Node().SetTimerMode(CIPProtoConnectionProvider::ETimerMedium);
   380 
   380 
       
   381     iContext.Node().iTimerStopped = EFalse;
   381 	CoreNetStates::TSendStarted transition(iContext);
   382 	CoreNetStates::TSendStarted transition(iContext);
   382 	transition.DoL();
   383 	transition.DoL();
   383 	}
   384 	}
   384 
   385 
   385 DEFINE_SMELEMENT(IpProtoCpr::TProcessDataClientStatusChange, NetStateMachine::MStateTransition, IpProtoCpr::TContext)
   386 DEFINE_SMELEMENT(IpProtoCpr::TProcessDataClientStatusChange, NetStateMachine::MStateTransition, IpProtoCpr::TContext)