connectionutilities/ConnectionDialogs/DisconnectDlg/src/ConnectionModel.cpp
branchRCL_3
changeset 24 c45d4fe2ff0a
parent 17 c14618f9de99
child 26 0a9e01492035
--- a/connectionutilities/ConnectionDialogs/DisconnectDlg/src/ConnectionModel.cpp	Tue Apr 27 17:03:25 2010 +0300
+++ b/connectionutilities/ConnectionDialogs/DisconnectDlg/src/ConnectionModel.cpp	Tue May 11 16:35:05 2010 +0300
@@ -308,8 +308,12 @@
         {
         // notifier will finish, so cancel all other notifications
         iMonitor.CancelNotifications();     
-        SelectedConnectionClosedL();
-        
+
+        // Bring back the 3s delay to avoid possible problems.
+        // (GPRS Detach and Attach overlapping, when only 1 context allowed,
+        // causing 15s delay.)
+        User::After( CAknNoteDialog::ELongTimeout );
+
         iDisconnectDialogUi->CompleteL( KErrNone );
         }
     else if( iDisconnectDialogUi  && 
@@ -348,21 +352,6 @@
 
 
 // ---------------------------------------------------------
-// CConnectionModel::SelectedConnectionClosedL
-// ---------------------------------------------------------
-//
-void CConnectionModel::SelectedConnectionClosedL()
-    {
-    CLOG_ENTERFN("CConnectionModel::SelectedConnectionClosedL");    
-    
-    // the connection is succesfully closed
-    CConnectionInfo* info = iConnArray->At( iClosingConnectionIndex );
-
-    CLOG_LEAVEFN("CConnectionModel::SelectedConnectionClosedL");    
-    }
-
-
-// ---------------------------------------------------------
 // CDisconnectDlgDialog::InfoNoteL
 // ---------------------------------------------------------
 //