summaryrefslogtreecommitdiffstats
path: root/libirecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'libirecovery.c')
-rw-r--r--libirecovery.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libirecovery.c b/libirecovery.c
index 6be2319..f92cc50 100644
--- a/libirecovery.c
+++ b/libirecovery.c
@@ -1023,8 +1023,10 @@ irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, un
}
}
- // we send a pseudo ZLP here just in case
- irecv_control_transfer(client, 0x21, 1, 0, 0, 0, 0, USB_TIMEOUT);
+ if (dfuNotifyFinished == 2) {
+ // we send a pseudo ZLP here just in case
+ irecv_control_transfer(client, 0x21, 1, 0, 0, 0, 0, USB_TIMEOUT);
+ }
irecv_reset(client);
}