mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: prevent crash in Custom Action when executable path is missing (#646)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
06762615b6
commit
fba84c8297
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue