]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
SALOME_NamingServicePy_i::__init__ method modification.
authormzn <mzn@opencascade.com>
Thu, 17 Nov 2005 15:14:08 +0000 (15:14 +0000)
committermzn <mzn@opencascade.com>
Thu, 17 Nov 2005 15:14:08 +0000 (15:14 +0000)
src/NamingService/SALOME_NamingServicePy.py

index ab7f2050d1a6e8ab35a2cf71fba50aca1ceffd84..8c36cf0183b3f121b107e7e38a7328b3f0914f20 100644 (file)
@@ -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)
     #-------------------------------------------------------------------------