Skip to content

Commit

Permalink
BisqExecutable: Fix startApplication() threading issue
Browse files Browse the repository at this point in the history
The startApplication method is only called on the user thread if the
user didn't downgrade his app. The readAllPersisted method calls
startApplication on the user thread. However, the code path handling
downgrades doesn't call startApplication on the user thread.
  • Loading branch information
alvasw committed Mar 6, 2025
1 parent 2bbdf33 commit 610774b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/bisq/core/app/BisqExecutable.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected void onApplicationLaunched() {
// If user tried to downgrade we do not read the persisted data to avoid data corruption
// We call startApplication to enable UI to show popup. We prevent in BisqSetup to go further
// in the process and require a shut down.
startApplication();
UserThread.execute(this::startApplication);
} else {
readAllPersisted(this::startApplication);
}
Expand Down

0 comments on commit 610774b

Please sign in to comment.