|
|
@ -17,7 +17,13 @@ public class GameServer @Inject constructor( |
|
|
|
|
|
|
|
|
|
|
|
serviceManager.startAsync() |
|
|
|
serviceManager.startAsync() |
|
|
|
runtime.addShutdownHook(shutdownHook) |
|
|
|
runtime.addShutdownHook(shutdownHook) |
|
|
|
|
|
|
|
try { |
|
|
|
serviceManager.awaitHealthy() |
|
|
|
serviceManager.awaitHealthy() |
|
|
|
|
|
|
|
} catch (ex: Throwable) { |
|
|
|
|
|
|
|
serviceManager.stopAsync().awaitStopped() |
|
|
|
|
|
|
|
runtime.removeShutdownHook(shutdownHook) |
|
|
|
|
|
|
|
throw ex |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val elapsed = System.nanoTime() - start |
|
|
|
val elapsed = System.nanoTime() - start |
|
|
|
logger.info { "Started OpenRS2 in ${elapsed / NANOS_PER_MILLI} milliseconds" } |
|
|
|
logger.info { "Started OpenRS2 in ${elapsed / NANOS_PER_MILLI} milliseconds" } |
|
|
|