fix: prevent crash in Custom Action when executable path is missing (#646)

This commit is contained in:
Chiahong
2024-11-03 17:00:17 +08:00
committed by GitHub
parent 06762615b6
commit fba84c8297

View File

@@ -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();
}
}