Skip to content

Commit a625f42

Browse files
committed
don't hold write lock in cffi (this blocked events)
1 parent 6d3805c commit a625f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deltachat-ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4894,7 +4894,7 @@ pub unsafe extern "C" fn dc_accounts_background_fetch_with_timeout(
48944894

48954895
let accounts = &*accounts;
48964896
block_on(async move {
4897-
let accounts = accounts.write().await;
4897+
let accounts = accounts.read().await;
48984898
match accounts
48994899
.background_fetch_with_timeout(Duration::from_secs(timeout_in_seconds))
49004900
.await

0 commit comments

Comments
 (0)