From a877bad3ade040b3571e1393865ab1fcef293fe6 Mon Sep 17 00:00:00 2001 From: skilion Date: Sun, 20 Sep 2015 14:49:44 +0200 Subject: [PATCH] run garbage collection after the synchronization --- src/main.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.d b/src/main.d index 724fd85c..3c109a14 100644 --- a/src/main.d +++ b/src/main.d @@ -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)); } } }