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 85ccf77 commit 300caa1Copy full SHA for 300caa1
src/main/scala/de/upb/cs/swt/delphi/webapi/Server.scala
@@ -31,17 +31,13 @@ object Server extends HttpApp with JsonSupport with AppLogging {
31
32
33
def main(args: Array[String]): Unit = {
34
- sys.addShutdownHook({
35
- log.warning("Received shutdown signal.")
36
- InstanceRegistry.handleInstanceStop(configuration)
37
- })
38
39
StartupCheck.check(configuration)
40
Server.startServer(configuration.bindHost, configuration.bindPort, system)
41
42
- val terminationFuture = system.terminate()
+ InstanceRegistry.handleInstanceStop(configuration)
43
44
- terminationFuture.onComplete {
+ system.terminate().onComplete{
45
sys.exit(0)
46
}
47
0 commit comments