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

Fix the database lock error in multithread download #1276

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

gogog22510
Copy link
Contributor

As per discussion in #1274, initialize the database in constructor to avoid database lock error in multithread environment.

@gogog22510
Copy link
Contributor Author

I tested locally with my app, looks good to me.

@ValueRaider
Copy link
Collaborator

I've tidied the code, let me know if it broke again.

@gogog22510
Copy link
Contributor Author

gogog22510 commented Jan 4, 2023

The tidied change LGTM. I tested locally few times and doesn't see the error.

@ValueRaider ValueRaider merged commit 1495834 into ranaroussi:dev Jan 4, 2023
@ValueRaider ValueRaider mentioned this pull request Jan 14, 2023
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.

2 participants