We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dddab96 commit 97f6935Copy full SHA for 97f6935
jooby/src/main/java/io/jooby/internal/GracefulShutdownHandler.java
@@ -47,8 +47,7 @@ public GracefulShutdownHandler(Duration await) {
47
long snapshot = stateUpdater.updateAndGet(this, incrementActive);
48
if (isShutdown(snapshot)) {
49
decrementRequests();
50
- return ctx.setResponseCode(StatusCode.SERVICE_UNAVAILABLE)
51
- .send(StatusCode.SERVICE_UNAVAILABLE);
+ return ctx.send(StatusCode.SERVICE_UNAVAILABLE);
52
} else {
53
ctx.onComplete(context -> {
54
0 commit comments