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:
parent
16b19f1c1f
commit
5324d3ef29
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class PersistentDataUtilities {
|
|||
|
||||
// ? how do i clear the file contents without making a completely new FileWriter
|
||||
// or is this the only way?
|
||||
public static void write () {
|
||||
public static synchronized void write () {
|
||||
try {
|
||||
writer.close();
|
||||
|
||||
|
|
Loading…
Reference in a new issue