Fix misagent incorrect status value (#19)

This commit is contained in:
Stossy11
2025-08-11 23:23:56 +10:00
committed by GitHub
parent d59f028251
commit 713a2ae0c2

View File

@@ -105,7 +105,7 @@ impl MisagentClient {
match res.remove("Status") { match res.remove("Status") {
Some(plist::Value::Integer(status)) => { Some(plist::Value::Integer(status)) => {
if let Some(status) = status.as_unsigned() { if let Some(status) = status.as_unsigned() {
if status == 1 { if status == 0 {
Ok(()) Ok(())
} else { } else {
Err(IdeviceError::MisagentFailure) Err(IdeviceError::MisagentFailure)
@@ -155,7 +155,7 @@ impl MisagentClient {
match res.remove("Status") { match res.remove("Status") {
Some(plist::Value::Integer(status)) => { Some(plist::Value::Integer(status)) => {
if let Some(status) = status.as_unsigned() { if let Some(status) = status.as_unsigned() {
if status == 1 { if status == 0 {
Ok(()) Ok(())
} else { } else {
Err(IdeviceError::MisagentFailure) Err(IdeviceError::MisagentFailure)