Update public source
This commit is contained in:
+15
-5
@@ -2085,10 +2085,18 @@ def gps_test_start():
|
|||||||
|
|
||||||
global gps_test_service
|
global gps_test_service
|
||||||
|
|
||||||
if get_scanner_status()["running"]:
|
|
||||||
|
|
||||||
with scanner_lock:
|
with scanner_lock:
|
||||||
|
|
||||||
|
if (
|
||||||
|
scanner_starting
|
||||||
|
or
|
||||||
|
(
|
||||||
|
scanner_process is not None
|
||||||
|
and
|
||||||
|
scanner_process.poll() is None
|
||||||
|
)
|
||||||
|
):
|
||||||
|
|
||||||
scanner_output.append(
|
scanner_output.append(
|
||||||
"[GUI] GPS test cannot start "
|
"[GUI] GPS test cannot start "
|
||||||
"while scanner is running."
|
"while scanner is running."
|
||||||
@@ -2108,7 +2116,9 @@ def gps_test_start():
|
|||||||
if (
|
if (
|
||||||
gps_test_service is not None
|
gps_test_service is not None
|
||||||
and
|
and
|
||||||
gps_test_service.running
|
gps_test_service.thread is not None
|
||||||
|
and
|
||||||
|
gps_test_service.thread.is_alive()
|
||||||
):
|
):
|
||||||
|
|
||||||
return jsonify(
|
return jsonify(
|
||||||
@@ -2144,8 +2154,6 @@ def gps_test_start():
|
|||||||
|
|
||||||
gps_test_service = None
|
gps_test_service = None
|
||||||
|
|
||||||
with scanner_lock:
|
|
||||||
|
|
||||||
scanner_output.append(
|
scanner_output.append(
|
||||||
f"[GUI] Failed to start GPS test: "
|
f"[GUI] Failed to start GPS test: "
|
||||||
f"{error}"
|
f"{error}"
|
||||||
@@ -2425,6 +2433,8 @@ def scanner_start():
|
|||||||
|
|
||||||
with scanner_lock:
|
with scanner_lock:
|
||||||
|
|
||||||
|
scanner_starting = False
|
||||||
|
|
||||||
scanner_output.append(
|
scanner_output.append(
|
||||||
"[GUI] WiFi interface was not selected."
|
"[GUI] WiFi interface was not selected."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user