From 223e751558e79a45bf95d6224bf1afaa93d7dcf0 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 17 Nov 2005 15:14:08 +0000 Subject: [PATCH] SALOME_NamingServicePy_i::__init__ method modification. --- src/NamingService/SALOME_NamingServicePy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NamingService/SALOME_NamingServicePy.py b/src/NamingService/SALOME_NamingServicePy.py index ab7f2050d..8c36cf018 100644 --- a/src/NamingService/SALOME_NamingServicePy.py +++ b/src/NamingService/SALOME_NamingServicePy.py @@ -50,7 +50,7 @@ class SALOME_NamingServicePy_i: self._orb = orb # initialize root context and current context ok = 0 - steps = 40 + steps = 240 while steps > 0 and ok == 0: try: obj =self._orb.resolve_initial_references("NameService") @@ -68,7 +68,7 @@ class SALOME_NamingServicePy_i: MESSAGE(" Name service not found") time.sleep(0.25) steps = steps - 1 - if steps == 0: + if steps == 0 and self._root_context is None: MESSAGE ( "Name Service Reference is invalid" ) sys.exit(1) #------------------------------------------------------------------------- -- 2.39.2