mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
run garbage collection after the synchronization
This commit is contained in:
parent
74fadfb262
commit
a877bad3ad
1 changed files with 4 additions and 1 deletions
|
|
@ -109,8 +109,11 @@ void main(string[] args)
|
|||
sync.applyDifferences();
|
||||
sync.scanForDifferences(".");
|
||||
m.init(cfg, verbose);
|
||||
import core.memory;
|
||||
GC.collect();
|
||||
} else {
|
||||
Thread.sleep(dur!"msecs"(100));
|
||||
}
|
||||
Thread.sleep(dur!"msecs"(100));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue