diff mbox series

[v2] downloader: do not execute post command if install failed

Message ID 20210412012005.116200-1-dominique.martinet@atmark-techno.com
State Changes Requested
Headers show
Series [v2] downloader: do not execute post command if install failed | expand

Commit Message

Dominique Martinet April 12, 2021, 1:20 a.m. UTC
download_from_url should not ignore errors from ipc_wait_for_complete

Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
---
v2: remove unnecessary ipc_wait_for_complete change
v2: remove "if (result == FAILURE) result = FAILURE" useless assignment

Sorry for the noise.

 corelib/downloader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/corelib/downloader.c b/corelib/downloader.c
index 6d6a132fd307..a2a7d44eafdb 100644
--- a/corelib/downloader.c
+++ b/corelib/downloader.c
@@ -54,7 +54,7 @@  static RECOVERY_STATUS download_from_url(channel_data_t* channel_data)
 	if (chanresult != CHANNEL_OK) {
 		result = FAILURE;
 	}
-	ipc_wait_for_complete(NULL);
+	result = ipc_wait_for_complete(NULL);
 	channel->close(channel);
 	free(channel);
 	return result;