Closed A-dead-pixel closed 10 months ago
This solution will not work on Windows, as os.remove raises an error when removing an open file. Added a PR that should work on both Unix and Windows (#226)
Thank you @dawidratynski and @A-dead-pixel for your PRs!
When generating the audio form of a captha, the resulting audio files are never deleted, thus slowly (?) filling up the tmpdir. They aren't cached or reused either. This PR fixes that by removing the file after the response gets a file descriptor for it.
Closes #225.