The Free Software Media System - Server Backend & API
Graciously handle transfer status reporting for SyncJobItems
softworkz4ee1426757e0
diff --git a/Emby.Server.Implementations/Sync/SyncManager.cs b/Emby.Server.Implementations/Sync/SyncManager.csindex 2687eaefc1..418d42c9a6 100644--- a/Emby.Server.Implementations/Sync/SyncManager.cs+++ b/Emby.Server.Implementations/Sync/SyncManager.cs@@ -560,6 +560,12 @@ namespace Emby.Server.Implementations.Sync{var jobItem = _repo.GetJobItem(id);+ if (jobItem == null)+ {+ _logger.Debug("ReportSyncJobItemTransferred: SyncJobItem {0} doesn't exist anymore", id);+ return;+ }+jobItem.Status = SyncJobItemStatus.Synced;jobItem.Progress = 100;