Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoox committed Feb 24, 2025
1 parent a454834 commit 0aae5c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/com/linecorp/armeria/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,10 @@ public void operationComplete(ChannelFuture f) {
// Update the boss thread so its name contains the actual port.
Thread.currentThread().setName(bossThreadName(actualPort));

final InetSocketAddress actualLocalAddress = actualPort.localAddress();
lock.lock();
try {
// Update the map of active ports.
activePorts.put(actualLocalAddress, actualPort);
activePorts.put(actualPort.localAddress(), actualPort);
} finally {
lock.unlock();
}
Expand Down

0 comments on commit 0aae5c1

Please sign in to comment.