From 54666898573b260a2fa88903209753f6e68d4281 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 29 Dec 2023 07:09:47 -0500 Subject: [PATCH] set progress listener state in same thread --- .../src/main/java/haveno/core/xmr/setup/DownloadListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/haveno/core/xmr/setup/DownloadListener.java b/core/src/main/java/haveno/core/xmr/setup/DownloadListener.java index 19fc73dd80..f5b1cedc78 100644 --- a/core/src/main/java/haveno/core/xmr/setup/DownloadListener.java +++ b/core/src/main/java/haveno/core/xmr/setup/DownloadListener.java @@ -11,11 +11,11 @@ public class DownloadListener { private final DoubleProperty percentage = new SimpleDoubleProperty(-1); public void progress(double percentage, long blocksLeft, Date date) { - UserThread.execute(() -> this.percentage.set(percentage / 100d)); + UserThread.await(() -> this.percentage.set(percentage / 100d)); } public void doneDownload() { - UserThread.execute(() -> this.percentage.set(1d)); + UserThread.await(() -> this.percentage.set(1d)); } public ReadOnlyDoubleProperty percentageProperty() {