mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-30 10:38:34 +00:00
Prevent thread starvation when git dialog is open
This commit is contained in:
1 parent
d2e5329fb4
commit
af885e910c
1 file changed
+3
-1
@@ -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