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

Fixed bingo get fails on Windows #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

melvinmurvie
Copy link

This PR is to make sure opened files are closed immediately (instead of at defer) if we don't need it anymore.

On Windows an error occurs when we try to rename from/to an opened files. Calling os.Rename(old, new) we should make sure to close both old and new files (if new is existed and opened).

Fixes #127

@melvinmurvie melvinmurvie marked this pull request as draft November 7, 2024 09:43
@melvinmurvie melvinmurvie marked this pull request as ready for review November 7, 2024 09:45
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.

bingo get fails on Windows: bingo.tmp.mod is being used by another process
1 participant