mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-06 22:29:10 -04:00
Cleanup
This commit is contained in:
parent
c3f87609a8
commit
4fdc4366a1
2 changed files with 4 additions and 13 deletions
|
@ -127,8 +127,10 @@ public class TomP2PNode implements ClientNode {
|
|||
public void onSuccess(@Nullable PeerDHT peerDHT) {
|
||||
if (peerDHT != null) {
|
||||
TomP2PNode.this.peerDHT = peerDHT;
|
||||
setupTimerForIPCheck();
|
||||
setupReplyHandler();
|
||||
try {
|
||||
setup();
|
||||
storeAddress();
|
||||
} catch (NetworkException e) {
|
||||
Platform.runLater(() -> bootstrapListener.onFailed(e));
|
||||
}
|
||||
|
@ -149,12 +151,6 @@ public class TomP2PNode implements ClientNode {
|
|||
});
|
||||
}
|
||||
|
||||
private void setup() throws NetworkException {
|
||||
setupTimerForIPCheck();
|
||||
setupReplyHandler();
|
||||
storeAddress();
|
||||
}
|
||||
|
||||
public void shutDown() {
|
||||
if (peerDHT != null)
|
||||
peerDHT.shutdown();
|
||||
|
|
|
@ -85,12 +85,7 @@ public class CreateOfferCoordinator {
|
|||
new Exception("Offer fee payment failed. Transaction = null."));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
offerRepository.addOffer(offer, () -> resultHandler.onResult(transaction), faultHandler);
|
||||
} catch (Exception e) {
|
||||
faultHandler.handleFault("Offer fee payment failed.", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue