equal
deleted
inserted
replaced
855 TInt CDriveThread::FinaliseTimerEvent(TAny* aSelfP) |
855 TInt CDriveThread::FinaliseTimerEvent(TAny* aSelfP) |
856 { |
856 { |
857 CDriveThread& self = *(CDriveThread*)aSelfP; |
857 CDriveThread& self = *(CDriveThread*)aSelfP; |
858 |
858 |
859 TDrive& drive = TheDrives[self.iDriveNumber]; |
859 TDrive& drive = TheDrives[self.iDriveNumber]; |
860 if(drive.IsMounted() && drive.CurrentMount().LockStatus() == 0) |
860 if(drive.IsMounted()) |
861 { |
861 { |
862 // Ignore the error here, as there's nothing we can do about it... |
862 if (drive.CurrentMount().LockStatus() == 0) |
863 (void)drive.FinaliseMount(RFs::EFinal_RW); |
863 { |
864 } |
864 // Ignore the error here, as there's nothing we can do about it... |
|
865 (void)drive.FinaliseMount(RFs::EFinal_RW); |
|
866 } |
|
867 else |
|
868 { |
|
869 self.StartFinalisationTimer(); |
|
870 } |
|
871 } |
865 |
872 |
866 return KErrNone; |
873 return KErrNone; |
867 } |
874 } |
868 |
875 |
869 |
876 |