Skip to content

Commit

Permalink
Register graceful shutdown for version command
Browse files Browse the repository at this point in the history
Change-Id: I0522561d9153f4963289bbc69fdb23b383ea0809
  • Loading branch information
thomasdraebing authored and msohn committed Oct 1, 2020
1 parent 4048e47 commit 0d53530
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/com/google/gerrit/sshd/commands/VersionCommand.java
Expand Up @@ -25,6 +25,7 @@ final class VersionCommand extends SshCommand {

@Override
protected void run() throws Failure {
enableGracefulStop();
String v = Version.getVersion();
if (v == null) {
throw new Failure(1, "fatal: version unavailable");
Expand Down

0 comments on commit 0d53530

Please sign in to comment.