diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs index ec7e0b22d..a0205215c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs @@ -93,10 +93,11 @@ namespace Tango.PPC.Common.RemoteJobUpload await receiver.SendGenericResponse(new RemoteJobUploadCompletedResponse(), token); completion.SetResult(true); - }, (error) => + }, async (error) => { job.File.Delete(); - completion.SetException(new OperationCanceledException(error)); + await receiver.SendGenericResponse(new RemoteJobUploadCompletedResponse() { Error = error }, token); + completion.SetResult(true); }) { Type = job.Type, FilePath = job.File.Path, Name = job.Name }); |
