Clean shutdown on window close

pull/4/head
knaccc 5 years ago
parent 9426b6a4b2
commit 0670469330

@ -49,6 +49,7 @@ public class Gui extends Application {
@Override
public void stop() throws Exception {
isStopping = true;
if(controller.getRouterWrapper().isStarted()) controller.getRouterWrapper().stop();
}
public boolean isStopping() {

@ -211,8 +211,6 @@ public class RouterWrapper {
final static String PROP_I2NP_NTCP_HOSTNAME = "i2np.ntcp.hostname";
final static String PROP_I2NP_NTCP_PORT = "i2np.ntcp.port";
final static String PROP_I2NP_NTCP_AUTO_PORT = "i2np.ntcp.autoport";
final static String PROP_I2NP_NTCP_AUTO_IP = "i2np.ntcp.autoip";
public NetworkStateMessage getReachability() {
RouterContext _context = router.getContext();

Loading…
Cancel
Save