|
@@ -142,12 +142,15 @@ namespace FastGithub
|
|
try
|
|
try
|
|
{
|
|
{
|
|
Process.GetProcessById(parentId).WaitForExit();
|
|
Process.GetProcessById(parentId).WaitForExit();
|
|
- await this.host.StopAsync(cancellationToken);
|
|
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
{
|
|
{
|
|
this.logger.LogError(ex, $"获取进程{parentId}异常");
|
|
this.logger.LogError(ex, $"获取进程{parentId}异常");
|
|
}
|
|
}
|
|
|
|
+ finally
|
|
|
|
+ {
|
|
|
|
+ await this.host.StopAsync(cancellationToken);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|