We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a454834 commit 0aae5c1Copy full SHA for 0aae5c1
core/src/main/java/com/linecorp/armeria/server/Server.java
@@ -841,11 +841,10 @@ public void operationComplete(ChannelFuture f) {
841
// Update the boss thread so its name contains the actual port.
842
Thread.currentThread().setName(bossThreadName(actualPort));
843
844
- final InetSocketAddress actualLocalAddress = actualPort.localAddress();
845
lock.lock();
846
try {
847
// Update the map of active ports.
848
- activePorts.put(actualLocalAddress, actualPort);
+ activePorts.put(actualPort.localAddress(), actualPort);
849
} finally {
850
lock.unlock();
851
}
0 commit comments