equal
deleted
inserted
replaced
579 TInt err = KErrNone; |
579 TInt err = KErrNone; |
580 TInt retries = KCatalogsDlMgrConnectRetryAttempts; |
580 TInt retries = KCatalogsDlMgrConnectRetryAttempts; |
581 |
581 |
582 do |
582 do |
583 { |
583 { |
584 TRAP( err, iDmgr.ConnectL( sessionId, *this, ETrue ) ); |
584 // TRAP( err, iDmgr.ConnectL( sessionId, *this, ETrue ) ); |
585 if ( err != KErrNone ) |
585 if ( err != KErrNone ) |
586 { |
586 { |
587 DLERROR(("DL manager connection failed with err: %d, retry attempts left", |
587 DLERROR(("DL manager connection failed with err: %d, retry attempts left", |
588 err, retries )); |
588 err, retries )); |
589 // This halts the whole thread which is not nice but shouldn't |
589 // This halts the whole thread which is not nice but shouldn't |
605 iDefaultConfig = CCatalogsHttpConfig::NewL(); |
605 iDefaultConfig = CCatalogsHttpConfig::NewL(); |
606 |
606 |
607 iNetworkManager = &CCatalogsHttpSessionManager::NetworkManagerL(); |
607 iNetworkManager = &CCatalogsHttpSessionManager::NetworkManagerL(); |
608 iNetworkManager->AddObserverL( *this ); |
608 iNetworkManager->AddObserverL( *this ); |
609 |
609 |
610 iDmgr.SetIntAttribute( EDlMgrExitAction, EExitPause ); |
610 // iDmgr.SetIntAttribute( EDlMgrExitAction, EExitPause ); |
611 // Restore downloads from previous sessions |
611 // Restore downloads from previous sessions |
612 RestoreDownloadsL(); |
612 // RestoreDownloadsL(); |
613 DLTRACEOUT(("")); |
613 DLTRACEOUT(("")); |
614 } |
614 } |
615 |
615 |
616 |
616 |
617 // --------------------------------------------------------------------------- |
617 // --------------------------------------------------------------------------- |