mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-07 09:01:36 -04:00
update sync transfer
This commit is contained in:
parent
f89f7c71a0
commit
a5815452c0
@ -243,7 +243,7 @@ namespace MediaBrowser.Api.Sync
|
|||||||
|
|
||||||
await _syncManager.ReportSyncJobItemTransferBeginning(request.Id).ConfigureAwait(false);
|
await _syncManager.ReportSyncJobItemTransferBeginning(request.Id).ConfigureAwait(false);
|
||||||
|
|
||||||
return ResultFactory.GetStaticFileResult(Request, new StaticFileResultOptions
|
return await ResultFactory.GetStaticFileResult(Request, new StaticFileResultOptions
|
||||||
{
|
{
|
||||||
Path = jobItem.OutputPath,
|
Path = jobItem.OutputPath,
|
||||||
OnError = () =>
|
OnError = () =>
|
||||||
@ -251,7 +251,8 @@ namespace MediaBrowser.Api.Sync
|
|||||||
var failedTask = _syncManager.ReportSyncJobItemTransferFailed(request.Id);
|
var failedTask = _syncManager.ReportSyncJobItemTransferFailed(request.Id);
|
||||||
Task.WaitAll(failedTask);
|
Task.WaitAll(failedTask);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
}).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<object> Get(GetSyncDialogOptions request)
|
public async Task<object> Get(GetSyncDialogOptions request)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user