Fix location simulation C example

This commit is contained in:
Jackson Coxson
2025-06-26 11:49:52 -06:00
parent 7832d851a8
commit 2d9259f996
2 changed files with 5 additions and 3 deletions

View File

@@ -83,7 +83,11 @@ pub unsafe extern "C" fn remote_server_connect_rsd(
let handshake_ref = unsafe { &mut (*handshake).0 };
// Connect using the reference
RemoteServerClient::connect_rsd(provider_ref, handshake_ref).await
let mut rs_client =
RemoteServerClient::connect_rsd(provider_ref, handshake_ref).await?;
// TODO: remove this when we can read from the remote server, or rethink the Rust API
rs_client.read_message(0).await?;
Ok(rs_client)
});
match res {