Attempt to fix server hanging on shutdown

This commit is contained in:
ceikry
2021-07-22 22:27:33 -05:00
parent d4d4727cf3
commit 0a6e5664b2
+1 -1
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()