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