Name the shutdown hook thread

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 43b8be3ff3
commit 080677b45c
  1. 2
      game/src/main/kotlin/org/openrs2/game/GameServer.kt

@ -13,7 +13,7 @@ public class GameServer @Inject constructor(
private val serviceManager = ServiceManager(services) private val serviceManager = ServiceManager(services)
public fun run(start: Long) { public fun run(start: Long) {
val shutdownHook = Thread(::stop) val shutdownHook = Thread(::stop, "ShutdownHook")
serviceManager.startAsync() serviceManager.startAsync()
runtime.addShutdownHook(shutdownHook) runtime.addShutdownHook(shutdownHook)

Loading…
Cancel
Save