From 713a2ae0c26e87aaf8bb8e3ad476c872b405199b Mon Sep 17 00:00:00 2001 From: Stossy11 <69031796+stossy11@users.noreply.github.com> Date: Mon, 11 Aug 2025 23:23:56 +1000 Subject: [PATCH] Fix misagent incorrect status value (#19) --- idevice/src/services/misagent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idevice/src/services/misagent.rs b/idevice/src/services/misagent.rs index 0018ba1..ab9b4b1 100644 --- a/idevice/src/services/misagent.rs +++ b/idevice/src/services/misagent.rs @@ -105,7 +105,7 @@ impl MisagentClient { match res.remove("Status") { Some(plist::Value::Integer(status)) => { if let Some(status) = status.as_unsigned() { - if status == 1 { + if status == 0 { Ok(()) } else { Err(IdeviceError::MisagentFailure) @@ -155,7 +155,7 @@ impl MisagentClient { match res.remove("Status") { Some(plist::Value::Integer(status)) => { if let Some(status) = status.as_unsigned() { - if status == 1 { + if status == 0 { Ok(()) } else { Err(IdeviceError::MisagentFailure)