diff options
| author | softworkz <softworkz@hotmail.com> | 2017-01-13 03:20:25 +0100 |
|---|---|---|
| committer | softworkz <softworkz@hotmail.com> | 2017-01-13 23:27:23 +0100 |
| commit | 4ee1426757e05ea489450c665f2b128a660736bc (patch) | |
| tree | a1c22ee27b2a50ea0c90b01ea744e40a0f747f3b | |
| parent | 4b910819edea80cc612a01c17caec04f7b92c771 (diff) | |
Graciously handle transfer status reporting for SyncJobItems
| -rw-r--r-- | Emby.Server.Implementations/Sync/SyncManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Sync/SyncManager.cs b/Emby.Server.Implementations/Sync/SyncManager.cs index 2687eaefc..418d42c9a 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; |
