storage/udisks: add missing MountWait() call to MapFS()

This commit is contained in:
Max Kellermann 2018-06-05 21:56:28 +02:00
parent 249316c8fc
commit cccf35d140
1 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,12 @@ public:
std::string MapUTF8(const char *uri_utf8) const noexcept override;
AllocatedPath MapFS(const char *uri_utf8) const noexcept override {
try {
const_cast<UdisksStorage *>(this)->MountWait();
} catch (...) {
return nullptr;
}
return mounted_storage->MapFS(uri_utf8);
}