Skip to content

Commit

Permalink
Check if the extension is reachable in owncloudgui compute sync status
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 19, 2024
1 parent 0e10d7f commit c852506
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/owncloudgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ void ownCloudGui::slotComputeOverallSyncStatus()
if (!Mac::FileProviderSettingsController::instance()->vfsEnabledForAccount(accountFpId)) {
continue;
}
const auto latestStatus = Mac::FileProvider::instance()->socketServer()->latestReceivedSyncStatusForAccount(accountState->account());
if (latestStatus == SyncResult::Problem || latestStatus == SyncResult::Error) {
const auto fileProvider = Mac::FileProvider::instance();
const auto latestStatus = fileProvider->socketServer()->latestReceivedSyncStatusForAccount(accountState->account());
if (latestStatus == SyncResult::Problem || latestStatus == SyncResult::Error || !fileProvider->xpc()->fileProviderExtReachable(accountFpId)) {
problemFileProviderAccounts.append(accountFpId);
} else if (latestStatus == SyncResult::SyncRunning) {
syncingFileProviderAccounts.append(accountFpId);
Expand Down

0 comments on commit c852506

Please sign in to comment.