diff mbox series

[1/2] Revert "progress: Clear source after reported download progress"

Message ID 20240111154305.668188-2-stefano.babic@swupdate.org
State Changes Requested
Headers show
Series BUG: post-update command is no longer called | expand

Commit Message

Stefano Babic Jan. 11, 2024, 3:43 p.m. UTC
This reverts commit d116870e943de2af088e09ccb8cce71aac7be2eb.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 core/progress_thread.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/core/progress_thread.c b/core/progress_thread.c
index 90687f21..161d2f61 100644
--- a/core/progress_thread.c
+++ b/core/progress_thread.c
@@ -24,7 +24,6 @@ 
 
 #include "swupdate.h"
 #include <handler.h>
-#include "swupdate_status.h"
 #include "util.h"
 #include "pctl.h"
 #include "network_ipc.h"
@@ -122,7 +121,6 @@  static void _swupdate_download_update(unsigned int perc, unsigned long long tota
 		pprog->msg.dwl_percent = perc;
 		pprog->msg.dwl_bytes = totalbytes;
 		send_progress_msg();
-		pprog->msg.source = SOURCE_UNKNOWN;
 	}
 	pthread_mutex_unlock(&pprog->lock);
 }