diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 4b375ad4c..bf45f1e46 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -2589,12 +2589,9 @@ pub unsafe extern "C" fn dc_set_location( } let ctx = &*context; - block_on(async move { - location::set(ctx, latitude, longitude, accuracy) - .await - .log_err(ctx) - .unwrap_or_default() - }) as libc::c_int + block_on(location::set(ctx, latitude, longitude, accuracy)) + .log_err(ctx) + .unwrap_or_default() as libc::c_int } #[no_mangle]