Attempt to fix server hanging on shutdown

This commit is contained in:
ceikry 2021-07-22 22:27:33 -05:00
parent cc2e38be07
commit 8744d9d167

View file

@ -90,7 +90,7 @@ object Server {
while(scanner.hasNextLine()){
val command = scanner.nextLine()
when(command){
"stop" -> SystemManager.flag(SystemState.TERMINATED)
"stop" -> exitProcess(0)
"players" -> System.out.println("Players online: " + (Repository.LOGGED_IN_PLAYERS.size))
"update" -> SystemManager.flag(SystemState.UPDATING)
"help","commands" -> printCommands()