config manager: use createTempFile for config temp file
With multiple clients with different configs saving at once, the same temp file was being used, which can cause it to not save or to move() a temp file from a different client
This commit is contained in:
@@ -394,7 +394,7 @@ public class ConfigManager
|
||||
|
||||
parent.mkdirs();
|
||||
|
||||
File tempFile = new File(parent, RuneLite.DEFAULT_CONFIG_FILE.getName() + ".tmp");
|
||||
File tempFile = File.createTempFile("runelite", null, parent);
|
||||
|
||||
try (FileOutputStream out = new FileOutputStream(tempFile))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user