Update public source
This commit is contained in:
+25
@@ -271,6 +271,8 @@ scanner_process = None
|
|||||||
|
|
||||||
scanner_starting = False
|
scanner_starting = False
|
||||||
|
|
||||||
|
network_action_active = False
|
||||||
|
|
||||||
scanner_health = "READY"
|
scanner_health = "READY"
|
||||||
|
|
||||||
scanner_stopped_at = None
|
scanner_stopped_at = None
|
||||||
@@ -373,6 +375,8 @@ def network_actions_busy():
|
|||||||
with scanner_lock:
|
with scanner_lock:
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
network_action_active
|
||||||
|
or
|
||||||
scanner_starting
|
scanner_starting
|
||||||
or
|
or
|
||||||
(
|
(
|
||||||
@@ -2276,6 +2280,16 @@ def gps_test_start():
|
|||||||
|
|
||||||
with scanner_lock:
|
with scanner_lock:
|
||||||
|
|
||||||
|
if network_action_active:
|
||||||
|
|
||||||
|
return jsonify(
|
||||||
|
{
|
||||||
|
"ok": False,
|
||||||
|
"error":
|
||||||
|
"A Wi-Fi connection operation is in progress."
|
||||||
|
}
|
||||||
|
), 409
|
||||||
|
|
||||||
if (
|
if (
|
||||||
scanner_starting
|
scanner_starting
|
||||||
or
|
or
|
||||||
@@ -2666,6 +2680,17 @@ def scanner_start():
|
|||||||
|
|
||||||
with scanner_lock:
|
with scanner_lock:
|
||||||
|
|
||||||
|
if network_action_active:
|
||||||
|
|
||||||
|
scanner_output.append(
|
||||||
|
"[GUI] Scanner cannot start "
|
||||||
|
"while a Wi-Fi connection operation is in progress."
|
||||||
|
)
|
||||||
|
|
||||||
|
return redirect(
|
||||||
|
url_for("index")
|
||||||
|
)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
scanner_starting
|
scanner_starting
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user