From 6ae0ca58b246325a3833a8a64b1388acd1c49d67 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 11 Apr 2012 12:51:53 +0200 Subject: [PATCH] fetcher: Add debug info for #692 --- SparkleLib/Git/SparkleFetcherGit.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index 250f27d2..dc1754b0 100755 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -201,9 +201,12 @@ namespace SparkleLib.Git { public override void Stop () { - if (this.git != null && !this.git.HasExited) { + try { this.git.Kill (); this.git.Dispose (); + + } catch (Exception e) { + SparkleHelpers.DebugInfo ("Fetcher", "Failed to cancel: " + e.Message); } Dispose (); @@ -242,7 +245,7 @@ namespace SparkleLib.Git { writer.WriteLine (config); writer.Close (); - SparkleHelpers.DebugInfo ("Config", "Added configuration to '" + repo_config_file_path + "'"); + SparkleHelpers.DebugInfo ("Fetcher", "Added configuration to '" + repo_config_file_path + "'"); }