Skip to content

Commit

Permalink
Improve handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Apr 17, 2024
1 parent e5516b4 commit 66335aa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/app/worker/http/http-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,10 @@ export abstract class HttpStream {
this._receivedDataResolver = undefined;
}

if (
data instanceof ErrorDescription ||
isCommunicationError(this.parse(data)) ||
isCommunicationErrorWrapper(this.parse(data))
) {
if (data instanceof ErrorDescription || isCommunicationError(data) || isCommunicationErrorWrapper(data)) {
this.handleError(data);
} else if (isCommunicationError(this.parse(data)) || isCommunicationErrorWrapper(this.parse(data))) {
this.handleError(this.parse(data));
} else {
data = this.parse(data);
this.failedCounter = 0;
Expand Down

0 comments on commit 66335aa

Please sign in to comment.