Closedown

This commit is contained in:
sfop
2017-03-30 09:06:41 +02:00
parent 6e0e506ea4
commit fdedb9645d
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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: