diff options
Diffstat (limited to 'common/fastboot.c')
-rw-r--r-- | common/fastboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/fastboot.c b/common/fastboot.c index d58f68f1bb..1e12f99915 100644 --- a/common/fastboot.c +++ b/common/fastboot.c @@ -342,7 +342,8 @@ int fastboot_handle_download_data(struct fastboot *fb, const void *buffer, void fastboot_download_finished(struct fastboot *fb) { - close(fb->download_fd); + if (!fastboot_download_to_buf(fb)) + close(fb->download_fd); printf("\n"); |