bearermanagement/mpm/src/mpmserver.cpp
changeset 3 f7816ffc66ed
parent 0 5a93021fdf25
child 8 2e6c4614c58e
child 18 fcbbe021d614
--- a/bearermanagement/mpm/src/mpmserver.cpp	Mon Jan 18 20:33:49 2010 +0200
+++ b/bearermanagement/mpm/src/mpmserver.cpp	Tue Jan 26 12:12:48 2010 +0200
@@ -1616,8 +1616,12 @@
     // Use priority order vpn, wlan and packet
     for ( TInt index = 0; index < iActiveBMConns.Count(); index++ )
         {
+        CMPMServerSession* serverSession = GetServerSession(
+            iActiveBMConns[index].iConnInfo.iConnId );
+                     	
         // Do check only for active connections
-        if ( iActiveBMConns[index].iConnInfo.iState == EStarted )
+        if ( iActiveBMConns[index].iConnInfo.iState == EStarted &&
+        	   serverSession->ChooseBestIapCalled() )
             {
             TMPMBearerType bearerType = EMPMBearerTypeOther;
         
@@ -1726,7 +1730,11 @@
     
     for ( TInt index = 0; index < iActiveBMConns.Count(); index++ )
         {
-        if ( iActiveBMConns[index].iConnInfo.iState == EStarted )
+        CMPMServerSession* serverSession = GetServerSession(
+             iActiveBMConns[index].iConnInfo.iConnId );
+
+        if ( iActiveBMConns[index].iConnInfo.iState == EStarted &&
+             serverSession->ChooseBestIapCalled() )
             {
             count++;
             }