mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-15 15:59:10 -05:00
map to user thread
This commit is contained in:
parent
8e74890a13
commit
1a66d3cef5
17 changed files with 574 additions and 591 deletions
|
|
@ -20,6 +20,7 @@ package io.bitsquare.trade.offer;
|
|||
import com.google.inject.Inject;
|
||||
import io.bitsquare.btc.TradeWalletService;
|
||||
import io.bitsquare.btc.WalletService;
|
||||
import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.crypto.KeyRing;
|
||||
import io.bitsquare.common.handlers.ErrorMessageHandler;
|
||||
import io.bitsquare.common.handlers.ResultHandler;
|
||||
|
|
@ -167,8 +168,8 @@ public class OpenOfferManager {
|
|||
TimerTask timerTask = new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
Thread.currentThread().setName("RepublishOffers-" + String.valueOf(new Random().nextInt(1000)));
|
||||
rePublishOffers();
|
||||
Thread.currentThread().setName("RepublishOffers-" + new Random().nextInt(1000));
|
||||
UserThread.execute(() -> rePublishOffers());
|
||||
try {
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue