diff -r 79859ed3eea9 -r 919f36ff910f browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpClientAppInstance.cpp --- a/browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpClientAppInstance.cpp Tue Aug 31 16:17:46 2010 +0300 +++ b/browserutilities/downloadmgr/DownloadMgrServEng/Src/HttpClientAppInstance.cpp Wed Sep 01 12:28:30 2010 +0100 @@ -15,13 +15,11 @@ * */ - - // INCLUDE FILES #include "HttpClientAppInstance.h" #include "HttpClientApp.h" #include "HttpDownloadManagerServerEngine.h" -#include "HttpDownloadMgrLogger.h" +#include "HttpDownloadMgrLogger.h" // EXTERNAL DATA STRUCTURES //extern ?external_data; @@ -562,6 +560,23 @@ case EDlMgrConnectionName: { iConnHandler->SetConnectionNameL( aValue ); + //resume Download if paused by OCC + CArrayPtrFlat* downloads = iClientApp->Downloads(); + + for( TInt i = 0; i < downloads->Count() ; ++i ) + { + if( (*downloads)[i]->ClientAppInstance() == this ) + { + // this won't surely leave on this call + if((*downloads)[i]->GetRetryFlag()) + { + TRAP_IGNORE( (*downloads)[i]->StartL() ); + (*downloads)[i]->SetRetryFlag(EFalse); + } + + } + } + } break;