Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions engine/commands/cortex_upd_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ constexpr const auto kNightlyFileName = "cortex-nightly.tar.gz";
const std::string kCortexBinary = "cortex";
constexpr const auto kBetaComp = "-rc";
constexpr const auto kReleaseFormat = ".tar.gz";
constexpr const auto kTimeoutCheckUpdate = std::chrono::milliseconds(1000);

inline std::string GetRole() {
#if defined(_WIN32)
Expand Down Expand Up @@ -68,6 +69,7 @@ inline void CheckNewUpdate() {
CTL_INF("Engine release path: " << host_name << release_path);

httplib::Client cli(host_name);
cli.set_connection_timeout(kTimeoutCheckUpdate);
if (auto res = cli.Get(release_path)) {
if (res->status == httplib::StatusCode::OK_200) {
try {
Expand Down