Skip to content

Commit

Permalink
fix: [mount] retry the mount process when the auto mount failed
Browse files Browse the repository at this point in the history
if the mount point is not empty that means this dev has been mounted

Log: retry the mount process when the auto mount failed
Bug: https://pms.uniontech.com/bug-view-222961.html
  • Loading branch information
max-lvs committed Nov 2, 2023
1 parent d39dfa9 commit 542c7c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dfm-mount/lib/dblockdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ void DBlockDevicePrivate::mountAsyncCallback(GObject *sourceObj, GAsyncResult *r
GError *err = nullptr;
g_autofree char *mountPoint = nullptr;
bool result = udisks_filesystem_call_mount_finish(fs, &mountPoint, res, &err);
if(mountPoint)
result = true;
handleErrorAndRelease(proxy, result, err, mountPoint); // ignore mount point, which will be notified by onPropertyChanged
}

Expand Down

0 comments on commit 542c7c6

Please sign in to comment.