|
|
@ -303,7 +303,7 @@ implementation available from the network. |
|
|
|
Runtime.getRuntime().addShutdownHook(new Thread() { |
|
|
|
Runtime.getRuntime().addShutdownHook(new Thread() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
// Use stderr here since the logger may has been reset by its JVM shutdown hook. |
|
|
|
// Use stderr here since the logger may have been reset by its JVM shutdown hook. |
|
|
|
System.err.println("*** shutting down gRPC server since JVM is shutting down"); |
|
|
|
System.err.println("*** shutting down gRPC server since JVM is shutting down"); |
|
|
|
HelloWorldServer.this.stop(); |
|
|
|
HelloWorldServer.this.stop(); |
|
|
|
System.err.println("*** server shut down"); |
|
|
|
System.err.println("*** server shut down"); |
|
|
|