summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-06-27 21:33:28 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-27 21:33:28 +0200
commit6672715bb0f66a6959f4ed68e11570316f7db7d0 (patch)
tree345f54105b91aad3c4f100313a89da3866d92985
parent9a173eacbc49aeb428281cdca69c86c9b28337c8 (diff)
Register sutdown handler for Restconf server before start
Change-Id: I25a22a194048637ea72dd35767e1e1701b5723e4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
-rw-r--r--infra/northbound/restconf/src/main/java/io/fd/honeycomb/northbound/restconf/JettyServerStarter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/northbound/restconf/src/main/java/io/fd/honeycomb/northbound/restconf/JettyServerStarter.java b/infra/northbound/restconf/src/main/java/io/fd/honeycomb/northbound/restconf/JettyServerStarter.java
index 7f5673caf..692131cae 100644
--- a/infra/northbound/restconf/src/main/java/io/fd/honeycomb/northbound/restconf/JettyServerStarter.java
+++ b/infra/northbound/restconf/src/main/java/io/fd/honeycomb/northbound/restconf/JettyServerStarter.java
@@ -61,8 +61,8 @@ class JettyServerStarter extends ProviderTrait<JettyServerStarter.RestconfJettyS
@Override
protected RestconfJettyServer create() {
final RestconfJettyServer jettyServer = new RestconfJettyServer(server);
- jettyServer.start();
shutdownHandler.register(RestconfJettyServer.class.getCanonicalName(), jettyServer);
+ jettyServer.start();
return jettyServer;
}