Merge "Close /dev/fuse FD before calling onClosed" into qt-dev

This commit is contained in:
Anton Hansson 2019-05-31 15:59:39 +00:00 committed by Android (Google) Code Review
commit b6d9fbddc6

View file

@ -354,8 +354,8 @@ bool FuseBridgeLoop::ProcessEventLocked(const std::unordered_set<FuseBridgeEntry
}
if (entry->IsClosing()) {
const int mount_id = entry->mount_id();
callback->OnClosed(mount_id);
bridges_.erase(mount_id);
callback->OnClosed(mount_id);
if (bridges_.size() == 0) {
// All bridges are now closed.
return false;