mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-18 14:55:53 -04:00
Reactivate success and null check
This commit is contained in:
parent
5d1fb36069
commit
ecd8712afd
@ -114,15 +114,14 @@ class TomP2PMessageService implements MessageService {
|
||||
futureGet.addListener(new BaseFutureAdapter<BaseFuture>() {
|
||||
@Override
|
||||
public void operationComplete(BaseFuture baseFuture) throws Exception {
|
||||
//TODO just deactivated temporary because in relay mode with 2 local peers isSuccess returns false
|
||||
//if (isSuccess(baseFuture) && futureGet.data() != null) {
|
||||
final Peer peer = (Peer) futureGet.data().object();
|
||||
Platform.runLater(() -> listener.onResult(peer));
|
||||
/* }
|
||||
if (baseFuture.isSuccess() && futureGet.data() != null) {
|
||||
final Peer peer = (Peer) futureGet.data().object();
|
||||
Platform.runLater(() -> listener.onResult(peer));
|
||||
}
|
||||
else {
|
||||
log.error("getPeerAddress failed. failedReason = " + baseFuture.failedReason());
|
||||
Platform.runLater(listener::onFailed);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user