Skip to content

Commit

Permalink
makes throwable assignment HB done assignment in onError (#3638)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <[email protected]>
  • Loading branch information
OlegDokuka authored Nov 13, 2023
1 parent 24bea93 commit 9e9649c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,13 @@ public void onError(Throwable t) {
return;
}

done = true;
if (!Exceptions.addThrowable(ERROR, this, t)) {
Operators.onErrorDroppedMulticast(t, subscribers);
return;
}

done = true;

long previousState = markTerminated(this);
if (isTerminated(previousState) || isCancelled(previousState)) {
return;
Expand Down

0 comments on commit 9e9649c

Please sign in to comment.