fix position of addShutdownHook()

This commit is contained in:
creeper123123321 2021-06-07 22:25:27 -03:00 committed by GitHub
parent 4288ab4792
commit 49ee04261b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,10 @@ fun main(args: Array<String>) {
bindPorts(args)
initFuture.complete(Unit)
VIAaaSConsole.start()
addShutdownHook()
VIAaaSConsole.start()
serverFinishing.join()
} catch (e: Exception) {
e.printStackTrace()