Explorar el Código

Graciously handle transfer status reporting for SyncJobItems

softworkz hace 8 años
padre
commit
4ee1426757
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      Emby.Server.Implementations/Sync/SyncManager.cs

+ 6 - 0
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;