fotaapplication/fotaserver/FotaServer/src/FotaServer.cpp
branchRCL_3
changeset 14 9e9792ae22e3
parent 9 57a65a3a658c
child 42 490439ac0bd4
equal deleted inserted replaced
13:06f47423ecee 14:9e9792ae22e3
   764 
   764 
   765     if (iDownloader->iDLState.iState == RFotaEngineSession::EDownloadFailed)
   765     if (iDownloader->iDLState.iState == RFotaEngineSession::EDownloadFailed)
   766         StoragePluginL()->DeleteUpdatePackageL ( iDownloader->iDLState.iPkgId );
   766         StoragePluginL()->DeleteUpdatePackageL ( iDownloader->iDLState.iPkgId );
   767         
   767         
   768     // Download not to be restarted, delete
   768     // Download not to be restarted, delete
   769     if ( iDownloader->iRestartCounter<=0 )
   769     if ( iDownloader ) 
       
   770     {
       
   771     	if ( iDownloader->iRestartCounter<=0 )
   770         {
   772         {
   771         // Set downloader's ending state to DB
   773         // Set downloader's ending state to DB
   772         iDatabase->OpenDBL();
   774         iDatabase->OpenDBL();
   773         iDatabase->SetStateL(iDLFinalizeState
   775         iDatabase->SetStateL(iDLFinalizeState
   774                             ,KNullDesC8,EFDBState|EFDBResult);
   776                             ,KNullDesC8,EFDBState|EFDBResult);
   812         TInt err = RProperty::Get(TUid::Uid(KOmaDMAppUid), KFotaDMRefresh, val );
   814         TInt err = RProperty::Get(TUid::Uid(KOmaDMAppUid), KFotaDMRefresh, val );
   813         if (val!=EFalse)
   815         if (val!=EFalse)
   814         	err = RProperty::Set(TUid::Uid(KOmaDMAppUid), KFotaDMRefresh, EFalse );
   816         	err = RProperty::Set(TUid::Uid(KOmaDMAppUid), KFotaDMRefresh, EFalse );
   815         FLOG(_L("RProperty KFotaDMRefresh EFalse, err = %d"), err);
   817         FLOG(_L("RProperty KFotaDMRefresh EFalse, err = %d"), err);
   816         }
   818         }
       
   819       }
   817     // Download to be restarted
   820     // Download to be restarted
   818     else
   821     else
   819         {
   822         {
   820         __ASSERT_ALWAYS( iDownloader->iUrl
   823         __ASSERT_ALWAYS( iDownloader->iUrl
   821                 ,User::Panic(KFotaPanic, KErrBadHandle ));
   824                 ,User::Panic(KFotaPanic, KErrBadHandle ));