mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Remove wrong thread names
This commit is contained in:
parent
23b1adbe7e
commit
9506bfd17d
@ -29,7 +29,6 @@ import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.handlers.ErrorMessageHandler;
|
||||
import io.bitsquare.common.handlers.ExceptionHandler;
|
||||
import io.bitsquare.common.handlers.ResultHandler;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import io.bitsquare.user.Preferences;
|
||||
import javafx.beans.property.*;
|
||||
import org.bitcoinj.core.*;
|
||||
@ -118,7 +117,6 @@ public class WalletService {
|
||||
Threading.USER_THREAD = UserThread.getExecutor();
|
||||
|
||||
Timer timeoutTimer = UserThread.runAfter(() -> {
|
||||
Utilities.setThreadName("WalletService:StartupTimeout");
|
||||
exceptionHandler.handleException(new TimeoutException("Wallet did not initialize in " + STARTUP_TIMEOUT_SEC / 1000 + " seconds."));
|
||||
}, STARTUP_TIMEOUT_SEC);
|
||||
|
||||
|
@ -19,7 +19,6 @@ package io.bitsquare.trade.offer;
|
||||
|
||||
import io.bitsquare.app.Version;
|
||||
import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import io.bitsquare.storage.Storage;
|
||||
import io.bitsquare.trade.Tradable;
|
||||
import io.bitsquare.trade.TradableList;
|
||||
@ -99,7 +98,6 @@ public class OpenOffer implements Tradable, Serializable {
|
||||
stopTimeout();
|
||||
|
||||
timeoutTimer = UserThread.runAfter(() -> {
|
||||
Utilities.setThreadName("OpenOffer:Timeout");
|
||||
log.info("Timeout reached");
|
||||
if (state == State.RESERVED)
|
||||
setState(State.AVAILABLE);
|
||||
|
@ -24,7 +24,6 @@ import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.crypto.KeyRing;
|
||||
import io.bitsquare.common.handlers.ErrorMessageHandler;
|
||||
import io.bitsquare.common.handlers.ResultHandler;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import io.bitsquare.p2p.Address;
|
||||
import io.bitsquare.p2p.FirstPeerAuthenticatedListener;
|
||||
import io.bitsquare.p2p.Message;
|
||||
@ -149,7 +148,6 @@ public class OpenOfferManager {
|
||||
TimerTask timerTask = new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
Utilities.setThreadName("RepublishOffers");
|
||||
UserThread.execute(() -> rePublishOffers());
|
||||
try {
|
||||
} catch (Throwable t) {
|
||||
|
@ -21,7 +21,6 @@ import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.handlers.ErrorMessageHandler;
|
||||
import io.bitsquare.common.handlers.ResultHandler;
|
||||
import io.bitsquare.common.taskrunner.TaskRunner;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import io.bitsquare.p2p.Message;
|
||||
import io.bitsquare.p2p.messaging.DecryptedMailListener;
|
||||
import io.bitsquare.trade.offer.Offer;
|
||||
@ -138,7 +137,6 @@ public class OfferAvailabilityProtocol {
|
||||
stopTimeout();
|
||||
|
||||
timeoutTimer = UserThread.runAfter(() -> {
|
||||
Utilities.setThreadName("OfferAvailabilityProtocol:Timeout");
|
||||
log.warn("Timeout reached");
|
||||
model.offer.setState(Offer.State.OFFERER_OFFLINE);
|
||||
errorMessageHandler.handleErrorMessage("Timeout reached: Peer has not responded.");
|
||||
|
@ -55,8 +55,8 @@ public class Preferences implements Serializable {
|
||||
));
|
||||
|
||||
transient static final private ArrayList<BlockChainExplorer> blockChainExplorersMainNet = new ArrayList<>(Arrays.asList(
|
||||
new BlockChainExplorer("Tradeblock.com", "https://tradeblock.com/bitcoin/tx/", "https://tradeblock.com/bitcoin/address/"),
|
||||
new BlockChainExplorer("Blocktrail", "https://www.blocktrail.com/BTC/tx/", "https://www.blocktrail.com/BTC/address/"),
|
||||
new BlockChainExplorer("Tradeblock.com", "https://tradeblock.com/bitcoin/tx/", "https://tradeblock.com/bitcoin/address/"),
|
||||
new BlockChainExplorer("Blockchain.info", "https://blockchain.info/tx/", "https://blockchain.info/address/"),
|
||||
new BlockChainExplorer("Blockexplorer", "https://blockexplorer.com/tx/", "https://blockexplorer.com/address/"),
|
||||
new BlockChainExplorer("Blockr.io", "https://btc.blockr.io/tx/info/", "https://btc.blockr.io/address/info/"),
|
||||
|
@ -118,7 +118,6 @@ public class TorNetworkNode extends NetworkNode {
|
||||
|
||||
if (executorService != null) {
|
||||
executorService.submit(() -> {
|
||||
Utilities.setThreadName("TorNetworkNodeShutDownSuperClass");
|
||||
UserThread.execute(() -> {
|
||||
// We want to stay in UserThread
|
||||
super.shutDown(() -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user