Commit 9483040f authored by Ben Hayward's avatar Ben Hayward

Tidying

1 merge request!587[Sprint/PinkPanther](fix): Upload cancelling #2083
Pipeline #88331832 failed with stages
in 35 minutes and 19 seconds
......@@ -27,6 +27,7 @@ export class AttachmentService {
private previewTimeout: any = null;
private pendingDelete: boolean = false;
private xhr: XMLHttpRequest = null;
static _(session: Session, client: Client, upload: Upload, http: HttpClient) {
......@@ -243,7 +244,6 @@ export class AttachmentService {
abort() {
if (this.xhr) {
this.progress.next(-1);
this.uploadSubscription.unsubscribe();
this.xhr.abort();
this.xhr = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment