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: solve the lock due to promise returned in a promise #96

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

Annubis45
Copy link
Contributor

when scanDir was called, it was returning a promise that calls scanFiles. But scanFiles returns a promise also. Solved by awaiting the return of scanFiles call and resolving correctly the promise of scanDir.

when scanDir was called, it was returning a promise thant calls scanFiles. But scanFiles returns a promise also. Solved by awaiting the return of scanFiles call and resolving correctly the promise of scanDir.
@kylefarris
Copy link
Owner

Excellent. I'll give this PR a spin and make sure everything is kosher. Not sure why the test suite didn't pick this issue up so I may need to add a new test or adjust a current one to make sure the intended functionality is working as expected from here on out.

@kylefarris kylefarris merged commit dfbafbf into kylefarris:master Mar 8, 2022
@kylefarris
Copy link
Owner

Fixes #87

@kylefarris
Copy link
Owner

For the record, this fix was pushed out in v2.1.1. Thank you for your contribution!

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