browserutilities/connectionmanager/Src/InternetConnectionManager.cpp
branchRCL_3
changeset 41 4bd5176e1bc8
parent 40 8bfb9186a8b8
child 48 79859ed3eea9
equal deleted inserted replaced
40:8bfb9186a8b8 41:4bd5176e1bc8
   651         {
   651         {
   652         CLOG_WRITE( "StopConnectionL() Stop the Connection" );        
   652         CLOG_WRITE( "StopConnectionL() Stop the Connection" );        
   653         iConnection.Close();
   653         iConnection.Close();
   654         TInt err = iConnection.Open( iServ, KAfInet );        
   654         TInt err = iConnection.Open( iServ, KAfInet );        
   655         }    
   655         }    
       
   656     else
       
   657         {
       
   658         CLOG_WRITE( "Cancel the Connection" );
       
   659         CancelConnection();
       
   660         }
   656     
   661     
   657 //    iServ.Close();
   662 //    iServ.Close();
   658     iConnected = EFalse;
   663     iConnected = EFalse;
   659     iEasyWlan = EFalse;
   664     iEasyWlan = EFalse;
   660 
   665 
  1658 //------------------------------------------------------------------------
  1663 //------------------------------------------------------------------------
  1659 //CInternetConnectionManager::CancelConnection
  1664 //CInternetConnectionManager::CancelConnection
  1660 //    
  1665 //    
  1661  void CInternetConnectionManager::CancelConnection()
  1666  void CInternetConnectionManager::CancelConnection()
  1662     {
  1667     {
       
  1668     CLOG_ENTERFN("CInternetConnectionManager::CancelConnection");
  1663     if(iSyncConnector && iSyncConnector->IsActive()) 
  1669     if(iSyncConnector && iSyncConnector->IsActive()) 
  1664         {
  1670         {
       
  1671         CLOG_WRITE( "Connection is cancelled" );        
  1665         iSyncConnector->Cancel();
  1672         iSyncConnector->Cancel();
  1666         }
  1673         }
  1667 	}
  1674 	}
  1668 		
  1675 		
  1669 //------------------------------------------------------------------------
  1676 //------------------------------------------------------------------------