refactor: remove unnecessary async block in dc_set_location

This commit is contained in:
link2xt
2026-04-24 20:58:58 +02:00
committed by l
parent 3aeb2d44b7
commit c17d067a1a

View File

@@ -2589,12 +2589,9 @@ pub unsafe extern "C" fn dc_set_location(
} }
let ctx = &*context; let ctx = &*context;
block_on(async move { block_on(location::set(ctx, latitude, longitude, accuracy))
location::set(ctx, latitude, longitude, accuracy) .log_err(ctx)
.await .unwrap_or_default() as libc::c_int
.log_err(ctx)
.unwrap_or_default()
}) as libc::c_int
} }
#[no_mangle] #[no_mangle]