update stop logic
@@ -27,6 +27,7 @@ package io.nuls.client.web.view;
import io.nuls.client.rpc.constant.RpcConstant;
import io.nuls.kernel.cfg.NulsConfig;
+import io.nuls.kernel.context.NulsContext;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.image.Image;
@@ -118,7 +119,7 @@ public class WebViewBootstrap extends Application implements Runnable, ActionLis
// */
@Override
public void stop() throws Exception {
- System.exit(0);
+ NulsContext.getInstance().exit(1);
}
private boolean isMac() {
