try something like 1 sexond?
This commit is contained in:
parent
34f9989d11
commit
fbcde87ef0
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ public class PersistentDataUtilities {
|
|||
write(queue.get(0));
|
||||
|
||||
queue.remove(0);
|
||||
}, 0, 50, TimeUnit.MILLISECONDS);
|
||||
}, 0, 1, TimeUnit.SECONDS);
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||
while (true) {
|
||||
|
@ -60,7 +60,7 @@ public class PersistentDataUtilities {
|
|||
}
|
||||
}
|
||||
|
||||
private static void write (String object) {
|
||||
private static synchronized void write (String object) {
|
||||
try {
|
||||
writer.close();
|
||||
|
||||
|
|
Loading…
Reference in a new issue