Skip to content

Commit

Permalink
Stop the server instead of killing proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed May 9, 2024
1 parent 98325e8 commit d22a21e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion api/src/main/java/ua/nanit/limbo/server/commands/CmdStop.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
package ua.nanit.limbo.server.commands;

import ua.nanit.limbo.server.Command;
import ua.nanit.limbo.server.LimboServer;

public class CmdStop implements Command {

private final LimboServer server;

public CmdStop(LimboServer server) {
this.server = server;
}

@Override
public void execute() {
System.exit(0);
server.stop();
}

@Override
Expand All @@ -18,4 +25,5 @@ public String name() {
public String description() {
return "Stop the server";
}

}

0 comments on commit d22a21e

Please sign in to comment.