mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-15 09:55:56 -04:00
fix issues going offline while completing trades
This commit is contained in:
parent
12e3e3507e
commit
2f1f1a788b
9 changed files with 93 additions and 135 deletions
|
@ -381,7 +381,13 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
|||
DecryptedMessageWithPubKey decryptedMsg = encryptionService.decryptAndVerify(sealedMsg.getSealedAndSigned());
|
||||
connection.maybeHandleSupportedCapabilitiesMessage(decryptedMsg.getNetworkEnvelope());
|
||||
connection.getPeersNodeAddressOptional().ifPresentOrElse(nodeAddress ->
|
||||
decryptedDirectMessageListeners.forEach(e -> e.onDirectMessage(decryptedMsg, nodeAddress)),
|
||||
decryptedDirectMessageListeners.forEach(e -> {
|
||||
try {
|
||||
e.onDirectMessage(decryptedMsg, nodeAddress);
|
||||
} catch (Exception e2) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
}),
|
||||
() -> {
|
||||
log.error("peersNodeAddress is expected to be available at onMessage for " +
|
||||
"processing PrefixedSealedAndSignedMessage.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue