Skip to content

Commit

Permalink
Fix sync process not finishing if there was an error
Browse files Browse the repository at this point in the history
  • Loading branch information
PCJones committed Feb 23, 2024
1 parent fbfbead commit 0bde5d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions UmlautAdaptarr/Services/ArrSyncBackgroundService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,18 @@ private async Task<bool> FetchAndUpdateDataAsync()
var success = true;
if (_readarrEnabled)
{
success = success && await FetchItemsFromReadarrAsync();
var syncSuccess = await FetchItemsFromReadarrAsync();
success = success && syncSuccess;
}
if (_sonarrEnabled)
{
success = success && await FetchItemsFromSonarrAsync();
var syncSuccess = await FetchItemsFromSonarrAsync();
success = success && syncSuccess;
}
if (_lidarrEnabled)
{
success = success && await FetchItemsFromLidarrAsync();
var syncSuccess = await FetchItemsFromLidarrAsync();
success = success && syncSuccess;
}
return success;
}
Expand Down

0 comments on commit 0bde5d5

Please sign in to comment.