mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 23:49:09 -04:00
Prevent thread starvation when git dialog is open
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user