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

onUpdateCookieStorage called with not actual cookies #9

Open
vovander opened this issue Jan 13, 2020 · 1 comment
Open

onUpdateCookieStorage called with not actual cookies #9

vovander opened this issue Jan 13, 2020 · 1 comment

Comments

@vovander
Copy link

When onUpdateCookieStorage event happened i will call:
HTTPCookieStorage.shared.cookies?.forEach { cookie in
...
}

But cookie has old values. Only when i call:
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
HTTPCookieStorage.shared.cookies?.forEach { cookie in
...
}
}
I will receive actual cookies. What i do wrong? How can i wait for actual cookies

But when i call it after 1 second it's not enough :(

Kofktu added a commit that referenced this issue Jan 15, 2020
@Kofktu
Copy link
Owner

Kofktu commented Jan 15, 2020

@vovander
Would you like to test it with the develop branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants