datacommsserver/esockserver/ssock/ss_sap.cpp
branchRCL_3
changeset 21 07656293a99c
parent 9 77effd21b2c9
equal deleted inserted replaced
19:35c06c1d4fa6 21:07656293a99c
   225 			{
   225 			{
   226 			if (!Idle())
   226 			if (!Idle())
   227 				{
   227 				{
   228 				SetIdle();
   228 				SetIdle();
   229 		    	ProcessDCIdleState();
   229 		    	ProcessDCIdleState();
       
   230 		    	if(!IdleSent())
       
   231 		    		{
       
   232 					LOG( ESockLog::Printf(_L("CNetworkFlow %08x:\tUnbind() - idle not sent"), this) );
       
   233 		    		}
   230 				}
   234 				}
   231 			}
   235 			}
   232 		else
   236 		else
   233 			{
   237 			{
   234 			// Legacy flows lack a SCPR to look after their destruction so need to suicide
   238 			// Legacy flows lack a SCPR to look after their destruction so need to suicide
   253 	if (Idle() && !IdleSent() && !ActivityRunning())
   257 	if (Idle() && !IdleSent() && !ActivityRunning())
   254 #else
   258 #else
   255 	if (Idle() && !IdleSent() && !NoBearerGuard())
   259 	if (Idle() && !IdleSent() && !NoBearerGuard())
   256 #endif
   260 #endif
   257 		{
   261 		{
       
   262 		if(Started())
       
   263 			{
       
   264 			iSubConnectionProvider.PostMessage(Id(), TCFControlProvider::TDataClientGoneDown(KErrConnectionTerminated).CRef());
       
   265 			}
   258 		SetIdleSent();
   266 		SetIdleSent();
   259 		iSubConnectionProvider.PostMessage(Id(), TCFControlProvider::TIdle().CRef());
   267 		iSubConnectionProvider.PostMessage(Id(), TCFControlProvider::TIdle().CRef());
   260 		}
   268 		}
   261 	}
   269 	}
   262 
   270