3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 23:03:04 +00:00

WalletAppKit - block on shutdown.

This commit is contained in:
Mike Hearn 2013-05-06 13:53:15 +02:00
parent 82e056cab7
commit ee0b56180b

View File

@ -108,7 +108,7 @@ public class WalletAppKit extends AbstractIdleService {
Runtime.getRuntime().addShutdownHook(new Thread() { Runtime.getRuntime().addShutdownHook(new Thread() {
@Override public void run() { @Override public void run() {
try { try {
WalletAppKit.this.stop(); WalletAppKit.this.stopAndWait();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }