]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
small correction vsr/17978
authorrnv <rnv@opencascade.com>
Fri, 7 May 2021 10:23:06 +0000 (13:23 +0300)
committerrnv <rnv@opencascade.com>
Fri, 7 May 2021 10:23:06 +0000 (13:23 +0300)
bin/salome_utils.py

index 75770ea0db12a12b196ca9b2ee4fb5d6ad80419a..ccd2fef2b9449d291582c208477f654c9cbcd3f7 100644 (file)
@@ -451,7 +451,7 @@ def getOmniNamesPid(port):
     """
     processes = {p.info['pid']: p.info['name'] for p in psutil.process_iter(['pid', 'name'])}
     return next((c.pid for c in psutil.net_connections(kind='inet') \
-                     if c.laddr.port == port and processes.get(c.pid)).startswith('omniNames')), None)
+                     if c.laddr.port == port and processes.get(c.pid).startswith('omniNames')), None)
 # --
 
 def killOmniNames(port):