mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Stop PeerGroup only if running
This commit is contained in:
parent
41b2e6a56d
commit
1c0655e2c7
1 changed files with 6 additions and 2 deletions
|
@ -468,9 +468,13 @@ public class WalletConfig extends AbstractIdleService {
|
|||
|
||||
// vPeerGroup.stop has no timeout and can take very long (10 sec. in my test). So we call it at the end.
|
||||
// We might get likely interrupted by the parent call timeout.
|
||||
vPeerGroup.stop();
|
||||
if (vPeerGroup.isRunning()) {
|
||||
vPeerGroup.stop();
|
||||
log.info("PeerGroup stopped");
|
||||
} else {
|
||||
log.info("PeerGroup not stopped because it was not running");
|
||||
}
|
||||
vPeerGroup = null;
|
||||
log.info("PeerGroup stopped");
|
||||
} catch (BlockStoreException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue