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