mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
A web-based collaborative LaTeX editor
ced34d91d4
The SwapJob creates temporary files indirectly through Tar.bz2.zip. These files are deleted with File.deleteOnExit, but there is no other deletion mechanism. This means that temporary files will build up as the git bridge runs, only being deleted when the JVM finally terminates. Instead, we can delete these temporary files as soon as they are no longer needed. The files are wrapped in a FileInputStream and not directly exposed, so we can simply delete the underlying file when the stream is closed, as then the file is inaccessible. |
||
---|---|---|
services/git-bridge |