mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add file name to temp file at write to disk
This commit is contained in:
parent
6b4d77fb1b
commit
0b38fccfd2
@ -305,7 +305,7 @@ public class PersistenceManager<T extends PersistableEnvelope> {
|
||||
|
||||
tempFile = usedTempFilePath != null
|
||||
? FileUtil.createNewFile(usedTempFilePath)
|
||||
: File.createTempFile("temp", null, dir);
|
||||
: File.createTempFile("temp_" + fileName, null, dir);
|
||||
// Don't use a new temp file path each time, as that causes the delete-on-exit hook to leak memory:
|
||||
tempFile.deleteOnExit();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user