fetcher git: Fix race condition when stopping a clone
This commit is contained in:
parent
20aa65aa7e
commit
2b71c01f09
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue