mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-26 15:59:37 -05:00
fix error popup on delete outdated tor files
This commit is contained in:
parent
9c359b5e29
commit
ff0ccc21e2
@ -140,6 +140,8 @@ class RequestDataHandler implements MessageListener {
|
||||
getDataRequestType = getDataRequest.getClass().getSimpleName();
|
||||
log.info("\n\n>> We send a {} to peer {}\n", getDataRequestType, nodeAddress);
|
||||
networkNode.addMessageListener(this);
|
||||
|
||||
try {
|
||||
SettableFuture<Connection> future = networkNode.sendMessage(nodeAddress, getDataRequest);
|
||||
//noinspection UnstableApiUsage
|
||||
Futures.addCallback(future, new FutureCallback<>() {
|
||||
@ -167,6 +169,9 @@ class RequestDataHandler implements MessageListener {
|
||||
}
|
||||
}
|
||||
}, MoreExecutors.directExecutor());
|
||||
} catch (Exception e) {
|
||||
if (!networkNode.isShutDownStarted()) throw e;
|
||||
}
|
||||
} else {
|
||||
log.warn("We have stopped already. We ignore that requestData call.");
|
||||
}
|
||||
|
@ -115,6 +115,7 @@ class PeerExchangeHandler implements MessageListener {
|
||||
TIMEOUT, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
try {
|
||||
SettableFuture<Connection> future = networkNode.sendMessage(nodeAddress, getPeersRequest);
|
||||
Futures.addCallback(future, new FutureCallback<Connection>() {
|
||||
@Override
|
||||
@ -144,6 +145,9 @@ class PeerExchangeHandler implements MessageListener {
|
||||
}
|
||||
}
|
||||
}, MoreExecutors.directExecutor());
|
||||
} catch (Exception e) {
|
||||
if (!networkNode.isShutDownStarted()) throw e;
|
||||
}
|
||||
} else {
|
||||
log.debug("My node address is still null at sendGetPeersRequest. We ignore that call.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user