Skip to content

Commit 0aae5c1

Browse files
committed
misc
1 parent a454834 commit 0aae5c1

File tree

1 file changed

+1
-2
lines changed
  • core/src/main/java/com/linecorp/armeria/server

1 file changed

+1
-2
lines changed

core/src/main/java/com/linecorp/armeria/server/Server.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,10 @@ public void operationComplete(ChannelFuture f) {
841841
// Update the boss thread so its name contains the actual port.
842842
Thread.currentThread().setName(bossThreadName(actualPort));
843843

844-
final InetSocketAddress actualLocalAddress = actualPort.localAddress();
845844
lock.lock();
846845
try {
847846
// Update the map of active ports.
848-
activePorts.put(actualLocalAddress, actualPort);
847+
activePorts.put(actualPort.localAddress(), actualPort);
849848
} finally {
850849
lock.unlock();
851850
}

0 commit comments

Comments
 (0)