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

on iOS, bug fixed when deleting task concurrently #637

Merged

Conversation

jackleemeta
Copy link
Contributor

@jackleemeta jackleemeta commented May 12, 2022

On iOS, when a running or enqueued task is deleting,it may be executed concurrently on main thread and thread that database queue vn.hunghd.flutter_downloader dispatched,it may cause that executeQueryResults returns non SQLITE_DONE(101) in code int executeQueryResults = sqlite3_step(compiledStatement),finally, failed, the task is not removed from database actually.

For example, 12 tasks try to be removed in a for loop, but only 9 tasks are SQLITE_DONE.
screenshot

I'm not sure if there's the case in other code, I haven't come across it yet.

@jackleemeta jackleemeta changed the title on iOS, bug fixed when deleting concurrent task on iOS, bug fixed when deleting task concurrently May 12, 2022
@hnvn
Copy link
Member

hnvn commented May 15, 2022

LGTM

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

Successfully merging this pull request may close these issues.

None yet

2 participants