mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Fix misagent incorrect status value (#19)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user