diff --git a/Tanji/Pages/Connection/ConnectionPage.cs b/Tanji/Pages/Connection/ConnectionPage.cs index 37d613b..1b4a32b 100644 --- a/Tanji/Pages/Connection/ConnectionPage.cs +++ b/Tanji/Pages/Connection/ConnectionPage.cs @@ -436,8 +436,7 @@ private async Task InterceptConnectionAsync() message.Parser = null; message.References.Clear(); } - GC.Collect(); - + if (UI.Connection.IsConnected) { if (_variableReplacements.Count > 0) @@ -456,6 +455,9 @@ private async Task InterceptConnectionAsync() } Status = STANDING_BY; + + GC.Collect(); + await Task.Delay(1000).ContinueWith(t => GC.Collect()).ConfigureAwait(false); } private bool HasPingInstructions() diff --git a/Tanji/Properties/AssemblyInfo.cs b/Tanji/Properties/AssemblyInfo.cs index 91bff96..d9216d7 100644 --- a/Tanji/Properties/AssemblyInfo.cs +++ b/Tanji/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.4.0.0")] -[assembly: AssemblyFileVersion("1.4.1250.0")] \ No newline at end of file +[assembly: AssemblyFileVersion("1.4.1251.0")] \ No newline at end of file