Prevent thread starvation when git dialog is open

This commit is contained in:
crschnick
2025-07-25 07:03:52 +00:00
parent d2e5329fb4
commit af885e910c

View File

@@ -99,7 +99,9 @@ public class StandardStorage extends DataStorage {
private void startSyncWatcher() {
GlobalTimer.scheduleUntil(Duration.ofSeconds(20), false, () -> {
ThreadHelper.runAsync(() -> {
busyIo.lock();
if (!busyIo.tryLock()) {
return;
}
dataStorageSyncHandler.refreshRemoteData();
busyIo.unlock();
});