Only try to rmdir in the case of success.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-07-23 23:09:08 +00:00
parent b71e631972
commit 7a1c09b66a

View File

@ -245,8 +245,8 @@ AutoMounter::_UnmountAndEjectVolume(BMessage *message)
if (status < B_OK)
_ReportUnmountError(partition->ContentName(), status);
rmdir(path.Path());
else
rmdir(path.Path());
}
return;
}