fetcher git: Fix race condition when stopping a clone

This commit is contained in:
Hylke Bons 2011-12-24 19:17:54 +01:00
parent 20aa65aa7e
commit 2b71c01f09

View file

@ -163,7 +163,7 @@ namespace SparkleLib {
public override void Stop ()
{
if (this.git != null) {
if (this.git != null && !this.git.HasExited) {
this.git.Kill ();
this.git.Dispose ();
}