aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-11-03 22:32:23 +0100
committerGitHub <noreply@github.com>2022-11-03 22:32:23 +0100
commit142e843a5511b55d761ce10860664d709ad6d8bb (patch)
treec2e1e55a5c7b5bebb95bb9264db1f31173167d20 /src-tauri/src/main.rs
parentd8232fa953a08aafce71e0bc9823c554eed59d7c (diff)
downloadFlightCore-142e843a5511b55d761ce10860664d709ad6d8bb.tar.gz
FlightCore-142e843a5511b55d761ce10860664d709ad6d8bb.zip
fix: Resolve thread crash due to block in async (#39)
Set the function to async but it was still using blocking version of reqwest.
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index a0f502b6..9cc27e31 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -203,7 +203,7 @@ async fn check_is_northstar_outdated(
/// false -> FlightCore install is up-to-date
/// true -> FlightCore install is outdated
async fn check_is_flightcore_outdated_caller() -> Result<bool, String> {
- check_is_flightcore_outdated()
+ check_is_flightcore_outdated().await
}
#[tauri::command]