Attempt to fix server hanging on shutdown
This commit is contained in:
@@ -90,7 +90,7 @@ object Server {
|
|||||||
while(scanner.hasNextLine()){
|
while(scanner.hasNextLine()){
|
||||||
val command = scanner.nextLine()
|
val command = scanner.nextLine()
|
||||||
when(command){
|
when(command){
|
||||||
"stop" -> SystemManager.flag(SystemState.TERMINATED)
|
"stop" -> exitProcess(0)
|
||||||
"players" -> System.out.println("Players online: " + (Repository.LOGGED_IN_PLAYERS.size))
|
"players" -> System.out.println("Players online: " + (Repository.LOGGED_IN_PLAYERS.size))
|
||||||
"update" -> SystemManager.flag(SystemState.UPDATING)
|
"update" -> SystemManager.flag(SystemState.UPDATING)
|
||||||
"help","commands" -> printCommands()
|
"help","commands" -> printCommands()
|
||||||
|
|||||||
Reference in New Issue
Block a user