Fix for "Mount-Points are purged from database on update/rescan."

Signed-off-by: FlashSystems <developer@flashsystems.de>
This commit is contained in:
FlashSystems
2017-11-25 12:24:27 +01:00
committed by Max Kellermann
parent 53def9a682
commit 63fc98591d
3 changed files with 4 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ Directory::PruneEmpty() noexcept
child != end;) {
child->PruneEmpty();
if (child->IsEmpty())
if (child->IsEmpty() && !child->IsMount())
child = children.erase_and_dispose(child,
DeleteDisposer());
else