mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-15 15:59:10 -05:00
Dont remove listener on fault
This commit is contained in:
parent
148278a959
commit
ea76c0577e
3 changed files with 14 additions and 9 deletions
|
|
@ -60,9 +60,8 @@ public abstract class TradeProtocol {
|
|||
TradeMessage tradeMessage = (TradeMessage) message;
|
||||
nonEmptyStringOf(tradeMessage.tradeId);
|
||||
|
||||
if (tradeMessage.tradeId.equals(processModel.getId())) {
|
||||
if (tradeMessage.tradeId.equals(processModel.getId()))
|
||||
doHandleDecryptedMessage(tradeMessage, peersNodeAddress);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//TODO not clear anymore what case is handled here
|
||||
|
|
@ -82,14 +81,14 @@ public abstract class TradeProtocol {
|
|||
|
||||
public void completed() {
|
||||
cleanup();
|
||||
processModel.getP2PService().removeDecryptedDirectMessageListener(decryptedDirectMessageListener);
|
||||
}
|
||||
|
||||
private void cleanup() {
|
||||
log.debug("cleanup " + this);
|
||||
stopTimeout();
|
||||
|
||||
processModel.getP2PService().removeDecryptedDirectMessageListener(decryptedDirectMessageListener);
|
||||
|
||||
// Don't remove removeDecryptedDirectMessageListener as it might be a non critical bug and it would prevent
|
||||
// that we get further messages
|
||||
}
|
||||
|
||||
public void applyMailboxMessage(DecryptedMsgWithPubKey decryptedMsgWithPubKey, Trade trade) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue