forked from Qortal/qortal
Improved online accounts processing, to avoid creating keys in the map before validation.
This commit is contained in:
parent
57125a91cf
commit
6f27d3798c
@ -192,8 +192,8 @@ public class OnlineAccountsManager {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Skip this account if it's already validated
|
// Skip this account if it's already validated
|
||||||
Set<OnlineAccountData> onlineAccounts = this.currentOnlineAccounts.computeIfAbsent(onlineAccountData.getTimestamp(), k -> ConcurrentHashMap.newKeySet());
|
Set<OnlineAccountData> onlineAccounts = this.currentOnlineAccounts.get(onlineAccountData.getTimestamp());
|
||||||
if (onlineAccounts.contains(onlineAccountData)) {
|
if (onlineAccounts != null && onlineAccounts.contains(onlineAccountData)) {
|
||||||
// We have already validated this online account
|
// We have already validated this online account
|
||||||
onlineAccountsImportQueue.remove(onlineAccountData);
|
onlineAccountsImportQueue.remove(onlineAccountData);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user