Skip to content

Commit 97f6935

Browse files
committed
shutdown handler: remove response body
1 parent dddab96 commit 97f6935

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jooby/src/main/java/io/jooby/internal/GracefulShutdownHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public GracefulShutdownHandler(Duration await) {
4747
long snapshot = stateUpdater.updateAndGet(this, incrementActive);
4848
if (isShutdown(snapshot)) {
4949
decrementRequests();
50-
return ctx.setResponseCode(StatusCode.SERVICE_UNAVAILABLE)
51-
.send(StatusCode.SERVICE_UNAVAILABLE);
50+
return ctx.send(StatusCode.SERVICE_UNAVAILABLE);
5251
} else {
5352
ctx.onComplete(context -> {
5453
decrementRequests();

0 commit comments

Comments
 (0)