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) {
|
while((line = reader.readLine()) != null) {
|
||||||
if (line.trim().equals(""))
|
if (line.trim().equals(""))
|
||||||
continue;
|
continue;
|
||||||
CLIBrigadierDispatcher.instance.execute(line);
|
String cmdLine = line;
|
||||||
|
new Thread(() -> CLIBrigadierDispatcher.instance.execute(cmdLine), "CLICmdThread #"+(i++)).start();
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.severe(e);
|
Log.severe(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user