userlibandfileserver/fileserver/sfile/sf_thread.cpp
changeset 4 56f325a607ea
parent 2 4122176ea935
child 41 0ffb4e86fcc9
equal deleted inserted replaced
2:4122176ea935 4:56f325a607ea
   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