[nodes] CameraInit: remove subprocess wait (communicate is enough)

This commit is contained in:
Fabien Castan 2019-12-16 20:10:04 +01:00
parent 9775924df0
commit 69a1f157ac

View file

@ -186,7 +186,7 @@ class CameraInit(desc.CommandLineNode):
# logging.debug(' - commandLine:', cmd) # logging.debug(' - commandLine:', cmd)
proc = psutil.Popen(cmd, stdout=None, stderr=None, shell=True) proc = psutil.Popen(cmd, stdout=None, stderr=None, shell=True)
stdout, stderr = proc.communicate() stdout, stderr = proc.communicate()
proc.wait() # proc.wait()
if proc.returncode != 0: if proc.returncode != 0:
raise RuntimeError('CameraInit failed with error code {}.\nCommand was: "{}".\n'.format( raise RuntimeError('CameraInit failed with error code {}.\nCommand was: "{}".\n'.format(
proc.returncode, cmd) proc.returncode, cmd)