summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar David Wang2018-11-19 00:50:05 -0800
committerGravatar Nikias Bassen2020-02-18 00:34:45 +0100
commit513950377df9cb93747ac69dae4ab55dded3ac5c (patch)
tree6e113bd43c5e2aea2ef7728626284e336af50886
parentce663f79d1d58f5ce6809a24bbb1e92a800d7ff8 (diff)
downloadidevicerestore-513950377df9cb93747ac69dae4ab55dded3ac5c.tar.gz
idevicerestore-513950377df9cb93747ac69dae4ab55dded3ac5c.tar.bz2
Allow remote side to terminate FDR connections rather than doing it ourselves.
-rw-r--r--src/fdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fdr.c b/src/fdr.c
index f213e99..b2ea70a 100644
--- a/src/fdr.c
+++ b/src/fdr.c
@@ -480,7 +480,8 @@ static int fdr_handle_plist_cmd(fdr_client_t fdr)
}
free(command);
- return 1; /* should terminate thread */
+ /* FDR connection will be terminated remotely. Next receive will get nothing, error and terminate this worker thread. */
+ return 0;
}
static int fdr_handle_proxy_cmd(fdr_client_t fdr)