Skip to content

Commit 713a2ae

Browse files
authored
Fix misagent incorrect status value (#19)
1 parent d59f028 commit 713a2ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

idevice/src/services/misagent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl MisagentClient {
105105
match res.remove("Status") {
106106
Some(plist::Value::Integer(status)) => {
107107
if let Some(status) = status.as_unsigned() {
108-
if status == 1 {
108+
if status == 0 {
109109
Ok(())
110110
} else {
111111
Err(IdeviceError::MisagentFailure)
@@ -155,7 +155,7 @@ impl MisagentClient {
155155
match res.remove("Status") {
156156
Some(plist::Value::Integer(status)) => {
157157
if let Some(status) = status.as_unsigned() {
158-
if status == 1 {
158+
if status == 0 {
159159
Ok(())
160160
} else {
161161
Err(IdeviceError::MisagentFailure)

0 commit comments

Comments
 (0)