Keeping command execution in separate thread
This commit is contained in:
parent
f3efe00b8b
commit
f0540a8942
@ -68,7 +68,8 @@ public class CLI extends Thread {
|
||||
while((line = reader.readLine()) != null) {
|
||||
if (line.trim().equals(""))
|
||||
continue;
|
||||
CLIBrigadierDispatcher.instance.execute(line);
|
||||
String cmdLine = line;
|
||||
new Thread(() -> CLIBrigadierDispatcher.instance.execute(cmdLine), "CLICmdThread #"+(i++)).start();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
Log.severe(e);
|
||||
|
Loading…
Reference in New Issue
Block a user