equal
deleted
inserted
replaced
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 //------------------------------------------------------------------------ |