diff --git a/core/src/main/java/io/bitsquare/trade/offer/OpenOfferManager.java b/core/src/main/java/io/bitsquare/trade/offer/OpenOfferManager.java index f099211e14..9935b4a994 100644 --- a/core/src/main/java/io/bitsquare/trade/offer/OpenOfferManager.java +++ b/core/src/main/java/io/bitsquare/trade/offer/OpenOfferManager.java @@ -160,7 +160,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe if (offerBookService.isBootstrapped()) { openOffers.forEach(openOffer -> offerBookService.removeOfferAtShutDown(openOffer.getOffer())); if (completeHandler != null) - UserThread.runAfter(completeHandler::run, size * 500 + 500, TimeUnit.MILLISECONDS); + UserThread.runAfter(completeHandler::run, size * 50 + 500, TimeUnit.MILLISECONDS); } else { if (completeHandler != null) completeHandler.run(); @@ -174,7 +174,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe }, errorMessage -> { })); if (completeHandler != null) - UserThread.runAfter(completeHandler::run, size * 500 + 500, TimeUnit.MILLISECONDS); + UserThread.runAfter(completeHandler::run, size * 50 + 500, TimeUnit.MILLISECONDS); } /////////////////////////////////////////////////////////////////////////////////////////// diff --git a/gui/src/main/java/io/bitsquare/app/BitsquareApp.java b/gui/src/main/java/io/bitsquare/app/BitsquareApp.java index 4110454cb3..cd27e14209 100644 --- a/gui/src/main/java/io/bitsquare/app/BitsquareApp.java +++ b/gui/src/main/java/io/bitsquare/app/BitsquareApp.java @@ -379,8 +379,8 @@ public class BitsquareApp extends Application { injector.getInstance(WalletService.class).shutDown(); }); }); - // we wait max 5 sec. - UserThread.runAfter(resultHandler::handleResult, 5); + // we wait max 20 sec. + UserThread.runAfter(resultHandler::handleResult, 20); } else { UserThread.runAfter(resultHandler::handleResult, 1); }