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 windows file lock error #326 #330

Merged

Conversation

tobiasmuecksch
Copy link
Contributor

fixes issue #326

The main issue was a race condition. The db.close() method resolved BEFORE the db file was released.

Additionally I implemented a file-lock check, which waits up to 4 seconds in case the file is still locked.

prior to this commit, the error message wasn't shown correctly
prior to this commit, the `database.close()` method resolved instantly, instead of resolving AFTER the database connection was closed

related to issue capacitor-community#326
@jepiqueau jepiqueau merged commit f0dd9f7 into capacitor-community:master Oct 10, 2022
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