synchronized?

IDK maybe it will fix the stream closed exception
if not then maybe i will make a write queue
This commit is contained in:
Chayapak 2023-07-03 21:10:48 +07:00
parent 16b19f1c1f
commit 5324d3ef29

View file

@ -39,7 +39,7 @@ public class PersistentDataUtilities {
// ? how do i clear the file contents without making a completely new FileWriter // ? how do i clear the file contents without making a completely new FileWriter
// or is this the only way? // or is this the only way?
public static void write () { public static synchronized void write () {
try { try {
writer.close(); writer.close();