Skip to content

Commit 41e02ed

Browse files
Merge pull request #19 from OpenArchive/fix/await-veilid-api-shutdown
Fix: Add missing .await for Veilid API shutdown in Android bridge
2 parents 9a18d1f + aa8cc9f commit 41e02ed

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)