diff --git a/idevice/src/xpc/mod.rs b/idevice/src/xpc/mod.rs index 581afd7..7b897bc 100644 --- a/idevice/src/xpc/mod.rs +++ b/idevice/src/xpc/mod.rs @@ -53,10 +53,6 @@ impl RemoteXpcClient { )) .await?; - debug!("Sending weird flags"); - self.send_root(XPCMessage::new(Some(XPCFlag::Custom(0x201)), None, None)) - .await?; - debug!("Opening reply stream"); self.h2_client.open_stream(REPLY_CHANNEL).await?; self.send_reply(XPCMessage::new( @@ -66,6 +62,10 @@ impl RemoteXpcClient { )) .await?; + debug!("Sending weird flags"); + self.send_root(XPCMessage::new(Some(XPCFlag::Custom(0x201)), None, None)) + .await?; + Ok(()) }