Skip to content

Commit aa8cc9f

Browse files
committed
Fix async handling in Veilid API shutdown by awaiting the get_veilid_api() call
1 parent 17bf107 commit aa8cc9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/android_bridge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub extern "system" fn Java_net_opendasharchive_openarchive_services_snowbird_Sn
120120
// Get the backend to access Veilid API
121121
if let Ok(mut backend) = crate::server::server::get_backend().await {
122122
// Shutdown Veilid API
123-
if let Some(veilid_api) = backend.get_veilid_api() {
123+
if let Some(veilid_api) = backend.get_veilid_api().await {
124124
veilid_api.shutdown().await;
125125
log_info!(TAG, "Veilid API shut down successfully");
126126
}

0 commit comments

Comments
 (0)