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