diff --git a/project.godot b/project.godot index de2e4e5..3345a9e 100644 --- a/project.godot +++ b/project.godot @@ -31,11 +31,11 @@ interfer/select_color=Vector3(1, 1, 1) interfer/interfer_color=Vector3(0.58, 0.47, 0.51) interfer/resend_timeout=1000.0 config/external_cu=false -config/unit_rr_request_period=30.0 +config/unit_rr_request_period=5.0 config/kems_files_path="user://kems/" config/emsg_files_path="user://emsg/" config/settings_path="user://settings.json" -config/unit_bpo_request_period=30.0 +config/unit_bpo_request_period=5.0 [autoload] diff --git a/scenes/контроль/request.gd b/scenes/контроль/request.gd index 92cbd33..9987069 100644 --- a/scenes/контроль/request.gd +++ b/scenes/контроль/request.gd @@ -64,10 +64,11 @@ func _ready(): func _on_request_timer(): + if HTTPClient.Status.STATUS_REQUESTING == get_http_client_status(): + return var addr = [addr_right, addr_left][i_bort] var hdrs = [headers_right, headers_left][i_bort] var rc: = request(addr, hdrs) if rc != Error.OK: - var s: String = '%s: %s' % [error_string(rc), addr] - log.error('%s' % s) + push_error('%s: \"%s\"' % [error_string(rc), addr]) i_bort = (i_bort + 1) % 2