bearermanagement/mpm/src/mpmserversession.cpp
branchRCL_3
changeset 45 4c83dcfb6f1a
parent 36 04408506c6e0
child 54 984e13af52c4
--- a/bearermanagement/mpm/src/mpmserversession.cpp	Wed Jun 09 10:07:12 2010 +0300
+++ b/bearermanagement/mpm/src/mpmserversession.cpp	Mon Jun 21 16:06:29 2010 +0300
@@ -813,8 +813,10 @@
 
     // check whether a started connection exists which already 
     // uses this IAP. If so, it won't need to be confirmed again
-    // 
-    if( iMyServer.CheckIfStarted( aIapId, iConnId ) )
+    //
+    TConnectionState state = iMyServer.CheckUsageOfIap( aIapId, iConnId );
+
+    if ( state == EStarted || state == EStarting || state == ERoaming )
         {
         MPMLOGSTRING(
         "CMPMServerSession::IsConfirmFirstL - IAP already started, \
@@ -2872,7 +2874,8 @@
     if ( !( iIapSelection->MpmConnPref().NoteBehaviour() &
             TExtendedConnPref::ENoteBehaviourConnDisableNotes) )
         {
-        TBool connectionAlreadyActive = iMyServer.CheckIfStarted( aIapId, iConnId );
+        TConnectionState state = iMyServer.CheckUsageOfIap( aIapId, iConnId );
+        TBool connectionAlreadyActive = (state == EStarted || state == EStarting || state == ERoaming);
         CConnectionUiUtilities* connUiUtils = NULL;
         if (!connectionAlreadyActive )
             {