diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/SelectorManager.java b/jetty-io/src/main/java/org/eclipse/jetty/io/SelectorManager.java index 7977dc4e2b6..6c3f6f3a602 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/SelectorManager.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/SelectorManager.java @@ -492,9 +492,9 @@ public abstract class SelectorManager extends AbstractLifeCycle implements Dumpa { EndPoint endPoint = newEndPoint(channel, this, selectionKey); endPointOpened(endPoint); - Connection asyncConnection = newConnection(channel, endPoint, selectionKey.attachment()); - endPoint.setConnection(asyncConnection); - connectionOpened(asyncConnection); + Connection connection = newConnection(channel, endPoint, selectionKey.attachment()); + endPoint.setConnection(connection); + connectionOpened(connection); LOG.debug("Created {}", endPoint); return endPoint; }