Skip to content

Commit 1ad563d

Browse files
authored
Set self.live=False before starting initialization of a grpc server (#1405)
Signed-off-by: paul.profizi <[email protected]>
1 parent f0b3670 commit 1ad563d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansys/dpf/core/server_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ def __init__(
683683
# Load DPFClientAPI
684684
from ansys.dpf.core.misc import is_pypim_configured
685685

686+
self.live = False
686687
super().__init__(ansys_path=ansys_path, load_operators=load_operators)
687688
# Load Ans.Dpf.GrpcClient
688689
self._grpc_client_path = load_api.load_grpc_client(ansys_path=ansys_path)
@@ -1017,11 +1018,11 @@ def __init__(
10171018
# Use ansys.grpc.dpf
10181019
from ansys.dpf.core.misc import is_pypim_configured
10191020

1021+
self.live = False
10201022
super().__init__()
10211023

10221024
self._info_instance = None
10231025
self._own_process = launch_server
1024-
self.live = False
10251026
self._local_server = False
10261027
self._stubs = {}
10271028
self.channel = None

0 commit comments

Comments
 (0)