mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-13 11:09:10 +01:00
Use runAfter instead of runPeriodically
This commit is contained in:
parent
3b31dc9ff3
commit
0cc0cfc9a5
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ public class PersistenceManager<T extends PersistableEnvelope> {
|
|||
// We write to disk with a delay to avoid frequent write operations. Depending on the priority those delays
|
||||
// can be rather long.
|
||||
if (timer == null) {
|
||||
timer = UserThread.runPeriodically(() -> {
|
||||
timer = UserThread.runAfter(() -> {
|
||||
persistNow(null);
|
||||
UserThread.execute(() -> timer = null);
|
||||
}, source.delayInSec, TimeUnit.SECONDS);
|
||||
|
|
Loading…
Add table
Reference in a new issue