Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
Signed-off-by: tmanninger <t.manninger@ixolit.com>
  • Loading branch information
tmanninger committed Sep 27, 2024
1 parent f7b4ddd commit 732d091
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,8 @@ protected void doStop() {
}
}
final long startTimeMillis = System.currentTimeMillis();
boolean closedAll = false;
while (System.currentTimeMillis() - startTimeMillis < gracefulShutdownMillis) {
if (httpChannels.isEmpty()) {
closedAll = true;
break;
}
try {
Expand All @@ -272,7 +270,7 @@ protected void doStop() {
}
}

if (!closedAll) {
if (!httpChannels.isEmpty()) {
logger.info("Timeout reached, {} connections not closed gracefully.", httpChannels.size());
} else {
logger.info("Closed all connections gracefully.");
Expand Down

0 comments on commit 732d091

Please sign in to comment.