mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
do not cancel take offer screen on maker disconnect if initializing
This commit is contained in:
parent
091ffd98eb
commit
6dedce1d27
@ -493,6 +493,7 @@ class TakeOfferViewModel extends ActivatableWithDataModel<TakeOfferDataModel> im
|
|||||||
connectionListener = new ConnectionListener() {
|
connectionListener = new ConnectionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
||||||
|
if (trade == null) return; // ignore if trade initializing
|
||||||
if (connection.getPeersNodeAddressOptional().isPresent() &&
|
if (connection.getPeersNodeAddressOptional().isPresent() &&
|
||||||
connection.getPeersNodeAddressOptional().get().equals(offer.getMakerNodeAddress())) {
|
connection.getPeersNodeAddressOptional().get().equals(offer.getMakerNodeAddress())) {
|
||||||
offerWarning.set(Res.get("takeOffer.warning.connectionToPeerLost"));
|
offerWarning.set(Res.get("takeOffer.warning.connectionToPeerLost"));
|
||||||
|
Loading…
Reference in New Issue
Block a user