harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp
branchRCL_3
changeset 14 646a02f170b9
parent 8 6752808b2036
child 15 3cebc1a84278
equal deleted inserted replaced
8:6752808b2036 14:646a02f170b9
   120     	TRAP_IGNORE( iMdEClient->GetMediaL( medias[i].iMediaId, driveLetter, presentState ) );
   120     	TRAP_IGNORE( iMdEClient->GetMediaL( medias[i].iMediaId, driveLetter, presentState ) );
   121     	
   121     	
   122     	if ( presentState && medias[i].iMediaId != hdMediaId )
   122     	if ( presentState && medias[i].iMediaId != hdMediaId )
   123     		{
   123     		{
   124     		// scan MMC if card was in phone
   124     		// scan MMC if card was in phone
       
   125     	
       
   126     	    if( iMmcScanner )
       
   127     	        {
       
   128     	        iMmcScanner->Cancel();
       
   129     	        delete iMmcScanner;
       
   130     	        iMmcScanner = NULL;
       
   131     	        }
   125     		TRAP_IGNORE( iMmcScanner = CMmcScannerAO::NewL( medias[i].iMediaId, iMdEClient, iObserver,
   132     		TRAP_IGNORE( iMmcScanner = CMmcScannerAO::NewL( medias[i].iMediaId, iMdEClient, iObserver,
   126     		    				aHarvesterPluginFactory, CActive::EPriorityHigh, alreadyWaited ) );
   133     		    				aHarvesterPluginFactory, CActive::EPriorityHigh, alreadyWaited ) );
   127     		alreadyWaited = ETrue;
   134     		alreadyWaited = ETrue;
   128     		}
   135     		}
   129     	}
   136     	}