mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
fix: prevent crash in Custom Action when executable path is missing (#646)
This commit is contained in:
@@ -45,6 +45,9 @@ namespace SourceGit.Commands
|
||||
try
|
||||
{
|
||||
proc.Start();
|
||||
proc.BeginOutputReadLine();
|
||||
proc.BeginErrorReadLine();
|
||||
proc.WaitForExit();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -54,9 +57,6 @@ namespace SourceGit.Commands
|
||||
});
|
||||
}
|
||||
|
||||
proc.BeginOutputReadLine();
|
||||
proc.BeginErrorReadLine();
|
||||
proc.WaitForExit();
|
||||
proc.Close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user