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