Merge pull request #2397 from softworkz/SyncFix

Graciously handle transfer status reporting for SyncJobItems
This commit is contained in:
Luke 2017-01-13 17:33:16 -05:00 committed by GitHub
commit e1da9c18a6

View File

@ -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;