mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Return early
This commit is contained in:
parent
7ba5ab5a4e
commit
5d13fdcdbb
1 changed files with 14 additions and 12 deletions
|
@ -296,7 +296,10 @@ public class MailboxMessageService implements SetupListener, RequestDataManager.
|
|||
// mailboxMessageList while getting called.
|
||||
UserThread.execute(() -> {
|
||||
String uid = mailboxMessage.getUid();
|
||||
if (mailboxItemsByUid.containsKey(uid)) {
|
||||
if (!mailboxItemsByUid.containsKey(uid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We called removeMailboxEntryFromNetwork at processMyMailboxItem,
|
||||
// but in case we have not been bootstrapped at that moment it did not get removed from the network.
|
||||
// So to be sure it gets removed we try to remove it now again.
|
||||
|
@ -308,7 +311,6 @@ public class MailboxMessageService implements SetupListener, RequestDataManager.
|
|||
// call removeMailboxItemFromMap here. The onRemoved only removes foreign mailBoxMessages.
|
||||
log.trace("## removeMailboxMsg uid={}", uid);
|
||||
removeMailboxItemFromLocalStore(uid);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// In case the network was not ready yet we try again later
|
||||
|
|
Loading…
Add table
Reference in a new issue