From 1aef8a6babf7ce5207790d035a54dbffcc8fd4e9 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 30 Nov 2024 10:06:42 -0500 Subject: [PATCH] fix deadlock on startup while awaiting monero connection --- core/src/main/java/haveno/core/api/XmrConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index 96458a27ac..3f50f4aa45 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -142,7 +142,7 @@ public final class XmrConnectionService { p2PService.addP2PServiceListener(new P2PServiceListener() { @Override public void onTorNodeReady() { - initialize(); + ThreadUtils.submitToPool(() -> initialize()); } @Override public void onHiddenServicePublished() {}