Skip to content

Commit

Permalink
Issue #4331 Close Complete
Browse files Browse the repository at this point in the history
Set _onError in onWriteComplete
NOOP callback instead of null

Signed-off-by: Greg Wilkins <gregw@webtide.com>
  • Loading branch information
gregw committed Dec 10, 2019
1 parent 589b71a commit 8553f41
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -286,10 +286,17 @@ void onWriteComplete(boolean last, Throwable failure)

case PENDING:
_apiState = ApiState.ASYNC;
if (failure != null)
{
_onError = failure;
wake = _channel.getState().onWritePossible();
}
break;

case UNREADY:
_apiState = ApiState.READY;
if (failure != null)
_onError = failure;
wake = _channel.getState().onWritePossible();
break;

Expand Down Expand Up @@ -1345,7 +1352,7 @@ public void run()
finally
{
// Initiate an async close
close(null);
close(Callback.NOOP);
}
}
}
Expand Down

0 comments on commit 8553f41

Please sign in to comment.