summaryrefslogtreecommitdiffstats
path: root/src/recovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2025-09-23 00:07:28 +0200
committerGravatar Nikias Bassen2025-09-23 00:07:28 +0200
commiteda43ac44e13384402a88fa83e6b21e46d7fac55 (patch)
tree430f698f609638f9e3c44ad9f53110c52298c772 /src/recovery.c
parenta0cec3b34fb112168aaae9fbb024e15302563b34 (diff)
downloadidevicerestore-eda43ac44e13384402a88fa83e6b21e46d7fac55.tar.gz
idevicerestore-eda43ac44e13384402a88fa83e6b21e46d7fac55.tar.bz2
Fix progress bar for DFU/Recovery image upload
Diffstat (limited to 'src/recovery.c')
-rw-r--r--src/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 4f7520a..b843f1e 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -99,7 +99,6 @@ int recovery_client_new(struct idevicerestore_client_t* client)
}
irecv_event_subscribe(recovery, IRECV_PROGRESS, &recovery_progress_callback, NULL);
- register_progress('RECV', "Uploading");
client->recovery->client = recovery;
return 0;
}
@@ -317,8 +316,10 @@ int recovery_send_component(struct idevicerestore_client_t* client, plist_t buil
logger(LL_INFO, "Sending %s (%zu bytes)...\n", component, size);
// FIXME: Did I do this right????
+ register_progress('RECV', "Uploading");
err = irecv_send_buffer(client->recovery->client, data, size, 0);
free(data);
+ finalize_progress('RECV');
if (err != IRECV_E_SUCCESS) {
logger(LL_ERROR, "Unable to send %s component: %s\n", component, irecv_strerror(err));
return -1;