--- a/bearermanagement/mpm/src/mpmserver.cpp Thu May 27 14:35:19 2010 +0300
+++ b/bearermanagement/mpm/src/mpmserver.cpp Thu Jun 10 16:00:16 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -34,7 +34,6 @@
#include "mpmlogger.h"
#include "mpmdtmwatcher.h"
#include "mpmroamingwatcher.h"
-#include "mpmdisconnectdlg.h"
#include "mpmconfirmdlgroaming.h"
#include "mpmconfirmdlgstarting.h"
#include "mpmcommsdataccess.h"
@@ -84,7 +83,6 @@
iPacketServLoaded( EFalse ),
iDtmWatcher( NULL ),
iWLANScanRequired( EFalse ),
- iDisconnectQueue( NULL ),
iRoamingQueue( NULL ),
iStartingQueue( NULL ),
iConnectionCounter( 0 ),
@@ -149,9 +147,6 @@
iRoamingWatcher = CMPMRoamingWatcher::NewL(iMobilePhone);
iCommsDatAccess = CMPMCommsDatAccess::NewL( );
-
- iDisconnectQueue = new ( ELeave ) CArrayPtrFlat<CMPMDisconnectDlg>( KGranularity );
- iDisconnectQueue->Reset();
iRoamingQueue = new ( ELeave ) CArrayPtrFlat<CMPMConfirmDlgRoaming>( KGranularity );
iRoamingQueue->Reset();
@@ -226,12 +221,6 @@
iRoamingToWlanPeriodic->Cancel();
delete iRoamingToWlanPeriodic;
}
- if ( iDisconnectQueue )
- {
- iDisconnectQueue->ResetAndDestroy();
- }
- delete iDisconnectQueue;
-
if ( iRoamingQueue )
{
iRoamingQueue->ResetAndDestroy();
@@ -842,6 +831,11 @@
TInt index = iSessions.Find( aSession );
if ( index != KErrNotFound )
{
+ if ( Events() )
+ {
+ // Cancel WLAN scan request if one exists
+ TRAP_IGNORE( Events()->CancelScanL( iSessions[index] ) )
+ }
iSessions.Remove( index );
}
}