Closedown
This commit is contained in:
+2
-2
@@ -313,7 +313,7 @@ def is_camtool_running():
|
||||
def kill_camtool():
|
||||
return exec_cmd("killall -9 " + CAMTOOL_SERVER_SCRIPT)
|
||||
|
||||
def run_camtool():
|
||||
def _run_camtool():
|
||||
try:
|
||||
cmd = "source /opt/gfa/python\n"
|
||||
port = camtool.url[camtool.url.rfind(":")+1:]
|
||||
@@ -326,7 +326,7 @@ def run_camtool():
|
||||
def check_camtool():
|
||||
if is_camtool_running():
|
||||
return False
|
||||
fork(run_camtool)
|
||||
fork(_run_camtool)
|
||||
start =time.time()
|
||||
while not is_camtool_running():
|
||||
if time.time() - start > 2.0:
|
||||
|
||||
Reference in New Issue
Block a user