mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
do not cancel take offer screen on maker disconnect if initializing
This commit is contained in:
parent
091ffd98eb
commit
6dedce1d27
1 changed files with 1 additions and 0 deletions
|
@ -493,6 +493,7 @@ class TakeOfferViewModel extends ActivatableWithDataModel<TakeOfferDataModel> im
|
|||
connectionListener = new ConnectionListener() {
|
||||
@Override
|
||||
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
||||
if (trade == null) return; // ignore if trade initializing
|
||||
if (connection.getPeersNodeAddressOptional().isPresent() &&
|
||||
connection.getPeersNodeAddressOptional().get().equals(offer.getMakerNodeAddress())) {
|
||||
offerWarning.set(Res.get("takeOffer.warning.connectionToPeerLost"));
|
||||
|
|
Loading…
Reference in a new issue