forked from 2009Scape/Server
Attempt to fix server hanging on shutdown
This commit is contained in:
parent
cc2e38be07
commit
8744d9d167
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue