Skip to content

Commit 2b693c0

Browse files
committed
fix: don't panic on XPC root read failure
1 parent fea0273 commit 2b693c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

idevice/src/remote_pairing/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<R: ReadWrite> RpPairingSocketProvider for RemoteXpcClient<R> {
185185
&'a mut self,
186186
) -> Pin<Box<dyn Future<Output = Result<plist::Value, IdeviceError>> + Send + 'a>> {
187187
Box::pin(async move {
188-
let msg = self.recv_root().await.unwrap();
188+
let msg = self.recv_root().await?;
189189
debug!("Received RemoteXPC {}", pretty_print_plist(&msg));
190190
let msg = msg.into_dictionary().and_then(|mut x| x.remove("value"));
191191

0 commit comments

Comments
 (0)