protected override void Dispose(bool disposing) { if (_disposed) { return; } _disposed = true; Disconnected -= PythonRpc_Disconnected; base.Dispose(disposing); if (_process?.HasExited == false) { _procServices.Kill(_process); _process = null; } }
public void Kill() { // This is needed because broker user cannot kill process running as another user. _ps.Kill(_process.Id); }