Shutdown TransferServer on "shutdown" and not "quit"

This commit is contained in:
Tobias Eidelpes 2020-10-17 18:46:13 +02:00
parent 56158f9a69
commit 60981e2695

View File

@ -38,7 +38,7 @@ public class TransferServer implements ITransferServer, Runnable {
Config univerZe = new Config("mailbox-univer-ze");
mailboxServers.add(earthPlanet);
mailboxServers.add(univerZe);
Shell shell = new Shell().register("quit", (input, context) -> shutdown());
Shell shell = new Shell().register("shutdown", (input, context) -> shutdown());
this.serverPort = config.getInt("tcp.port");
shell.run();