Ver Fonte

update sync transfer

Luke Pulverenti há 9 anos atrás
pai
commit
a5815452c0
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      MediaBrowser.Api/Sync/SyncService.cs

+ 3 - 2
MediaBrowser.Api/Sync/SyncService.cs

@@ -243,7 +243,7 @@ namespace MediaBrowser.Api.Sync
 
             await _syncManager.ReportSyncJobItemTransferBeginning(request.Id).ConfigureAwait(false);
 
-            return ResultFactory.GetStaticFileResult(Request, new StaticFileResultOptions
+            return await ResultFactory.GetStaticFileResult(Request, new StaticFileResultOptions
             {
                 Path = jobItem.OutputPath,
                 OnError = () =>
@@ -251,7 +251,8 @@ namespace MediaBrowser.Api.Sync
                     var failedTask = _syncManager.ReportSyncJobItemTransferFailed(request.Id);
                     Task.WaitAll(failedTask);
                 }
-            });
+
+            }).ConfigureAwait(false);
         }
 
         public async Task<object> Get(GetSyncDialogOptions request)