alwayson_net_plugin/pdpcontextmanager2/src/caoconnectionmanager.cpp
changeset 73 70ee5458c95d
parent 41 bbb64eb3bdee
equal deleted inserted replaced
72:0c32cf868819 73:70ee5458c95d
     1 /*
     1 /*
     2 * Copyright (c) 2004,2006 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   416     
   416     
   417         ptr = CLingerConnection::NewL( aConnectionId, 
   417         ptr = CLingerConnection::NewL( aConnectionId, 
   418                                        connInfo, 
   418                                        connInfo, 
   419                                        iSettings, 
   419                                        iSettings, 
   420                                        &iSocketServ );
   420                                        &iSocketServ );
   421                                    
   421 
   422         iLingerArray.Append( ptr );
   422         err = iLingerArray.Append( ptr );
   423         }
   423         if ( err )
   424                                    
   424             {
   425                                            
   425             LOG_2( _L("iLingerArray.Append: err: %d"), err );
       
   426             delete ptr;
       
   427             return;
       
   428             }
       
   429         }
       
   430 
   426     if ( iSettings.AccessPointId() == aIapId )
   431     if ( iSettings.AccessPointId() == aIapId )
   427         {
   432         {
   428         // Always-on-iap
   433         // Always-on-iap
   429         if ( !IsAlwaysOnEnabled() )
   434         if ( !IsAlwaysOnEnabled() )
   430             {
   435             {