Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve concurrent vault credential list access #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

binsky08
Copy link
Collaborator

@binsky08 binsky08 commented Sep 1, 2021

should fix some irregular occurring bugs

@binsky08 binsky08 added this to the v1.2.0 milestone Sep 1, 2021
@@ -115,7 +116,7 @@ public void onFillRequest(FillRequest request, CancellationSignal cancellationSi
CredentialAutofillService.WebDomainResult domain = getLikelyDomain(structures);

// Grab Credentials from vault
ArrayList<Credential> allCred = v.getCredentials();
CopyOnWriteArrayList<Credential> allCred = v.getCredentials();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't be better to use synchronized on the asynchronous task instead of usin this super heavy type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could not solve the problem with

synchronized (credentials) {
...
}

@binsky08 binsky08 removed this from the v1.2.0 milestone Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants