X-Git-Url: https://code.grnet.gr/git/pithos-ms-client/blobdiff_plain/368e06fd6d45fcc2e3f9aa99c02fcd988f8f0ecb..4671d60635fd4da7bcad87ca46c0181c16d33f36:/trunk/Pithos.Core/Agents/PollAgent.cs diff --git a/trunk/Pithos.Core/Agents/PollAgent.cs b/trunk/Pithos.Core/Agents/PollAgent.cs index e3ffd9e..a3ff53e 100644 --- a/trunk/Pithos.Core/Agents/PollAgent.cs +++ b/trunk/Pithos.Core/Agents/PollAgent.cs @@ -119,6 +119,7 @@ namespace Pithos.Core.Agents _syncEvent.Set(); } + /// /// Remote files are polled periodically. Any changes are processed /// @@ -130,7 +131,8 @@ namespace Pithos.Core.Agents Log.DebugFormat("Polling changes after [{0}]",since); Debug.Assert(Thread.CurrentThread.IsBackground, "Polling Ended up in the main thread!"); - + + GC.Collect(); using (ThreadContext.Stacks["Retrieve Remote"].Push("All accounts")) {