Skip to content

Conversation

@carl-mastrangelo
Copy link
Contributor

This is an expansion of 2292cbf

// `channel` shutdown can race with `ch` initialization, so this is only safe to increment
// inside the lock.
eventLoopReferenceCounter.retain();
ch.closeFuture().addListener(new ChannelFutureListener() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addListener could be placed after the synchronized block, but I honestly don't care.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the whole chain.

@carl-mastrangelo carl-mastrangelo merged commit dfe61e4 into grpc:master Feb 6, 2017
@carl-mastrangelo carl-mastrangelo deleted the nettyservernag branch February 6, 2017 23:44
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants