From 1ad563dd133fcabc13dd3422b45c8d64053741eb Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Wed, 7 Feb 2024 14:35:25 +0100 Subject: [PATCH] Set self.live=False before starting initialization of a grpc server (#1405) Signed-off-by: paul.profizi --- src/ansys/dpf/core/server_types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ansys/dpf/core/server_types.py b/src/ansys/dpf/core/server_types.py index 88d541383d..98b87eaf74 100644 --- a/src/ansys/dpf/core/server_types.py +++ b/src/ansys/dpf/core/server_types.py @@ -683,6 +683,7 @@ def __init__( # Load DPFClientAPI from ansys.dpf.core.misc import is_pypim_configured + self.live = False super().__init__(ansys_path=ansys_path, load_operators=load_operators) # Load Ans.Dpf.GrpcClient self._grpc_client_path = load_api.load_grpc_client(ansys_path=ansys_path) @@ -1017,11 +1018,11 @@ def __init__( # Use ansys.grpc.dpf from ansys.dpf.core.misc import is_pypim_configured + self.live = False super().__init__() self._info_instance = None self._own_process = launch_server - self.live = False self._local_server = False self._stubs = {} self.channel = None