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:
parent
b71e631972
commit
7a1c09b66a
@ -245,8 +245,8 @@ AutoMounter::_UnmountAndEjectVolume(BMessage *message)
|
||||
|
||||
if (status < B_OK)
|
||||
_ReportUnmountError(partition->ContentName(), status);
|
||||
|
||||
rmdir(path.Path());
|
||||
else
|
||||
rmdir(path.Path());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user