Skip to content

Commit

Permalink
Update server/src/main/java/com/linecorp/centraldogma/server/internal…
Browse files Browse the repository at this point in the history
…/api/AdministrativeService.java

Co-authored-by: minux <songmw725@gmail.com>
  • Loading branch information
0x1306e6d and minwoox authored Dec 17, 2021
1 parent 43c2c7a commit b2f31ea
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ public CompletableFuture<ServerStatus> updateStatus(ServiceRequestContext ctx,
}
return status();
});
} else {
return executor().stop().handle((unused, cause) -> {
if (cause != null) {
logger.warn("Failed to stop the command executor:", cause);
} else {
logger.info("Disabled replication");
}
return status();
});
}
return executor().stop().handle((unused, cause) -> {
if (cause != null) {
logger.warn("Failed to stop the command executor:", cause);
} else {
logger.info("Disabled replication");
}
return status();
});
}
}

Expand Down

0 comments on commit b2f31ea

Please sign in to comment.