Skip to content

Commit

Permalink
Serialize onCompleteFailure for #9059
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Dec 16, 2022
1 parent 0ada3d4 commit 4be6ac3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ private void processing()
}

case FAILED:
case CLOSED:
onCompleteFailure = _failure;
_failure = null;
break processing;

case SUCCEEDED:
case CLOSED:
break processing;

case IDLE:
Expand Down Expand Up @@ -410,6 +410,11 @@ public void close()
_state = State.CLOSED;
break;

case PENDING:
_failure = new IOException(String.format("Close %s in state %s", this, _state));
_state = State.CLOSED;
break;

case CLOSED:
break;

Expand Down

0 comments on commit 4be6ac3

Please sign in to comment.