diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-11-01 17:58:50 +0200 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-11-01 17:58:50 +0200 |
| commit | 5ab455fb09c659e92ad4de41ec7472e2b8e48499 (patch) | |
| tree | 77a6786eee4e5ae07d9b2b8e14fca7d8a6b3bcc3 /Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload | |
| parent | a8a1e530d7fb014a92b39e7414385b02691236a8 (diff) | |
| download | Tango-5ab455fb09c659e92ad4de41ec7472e2b8e48499.tar.gz Tango-5ab455fb09c659e92ad4de41ec7472e2b8e48499.zip | |
Hot folder impl completed.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload')
| -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 }); |
