mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Call p2PDataStorage.onBootstrapComplete() before
mailboxMessageService.onBootstrapped(); and onUpdatedDataReceived mailboxMessageService depends on p2PDataStorage so we make sure the p2PDataStorage is updated before we update the mailboxMessageService state.
This commit is contained in:
parent
49e9f72d6e
commit
c6868f1bed
1 changed files with 3 additions and 1 deletions
|
@ -318,13 +318,15 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
|||
public void onUpdatedDataReceived() {
|
||||
if (!isBootstrapped) {
|
||||
isBootstrapped = true;
|
||||
|
||||
p2PDataStorage.onBootstrapComplete();
|
||||
|
||||
// We don't use a listener at mailboxMessageService as we require the correct
|
||||
// order of execution. The p2pServiceListeners must be called after
|
||||
// mailboxMessageService.onUpdatedDataReceived.
|
||||
mailboxMessageService.onBootstrapped();
|
||||
|
||||
p2pServiceListeners.forEach(P2PServiceListener::onUpdatedDataReceived);
|
||||
p2PDataStorage.onBootstrapComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue