From 9343360be9e309abd467007f80d9d54c75e8d23b Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 4 Sep 2017 23:24:22 +0200 Subject: [PATCH] update-check: move init of object CFlashUpdate out of while-loop Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/432b2b055d830b0d3b39c7a1fbfc0d1c9c4ef284 Author: vanhofen Date: 2017-09-04 (Mon, 04 Sep 2017) Origin message was: ------------------ - update-check: move init of object CFlashUpdate out of while-loop --- src/gui/update_check.cpp | 4 ++-- src/gui/update_check.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/update_check.cpp b/src/gui/update_check.cpp index 65019f960..1cc14bac1 100644 --- a/src/gui/update_check.cpp +++ b/src/gui/update_check.cpp @@ -88,11 +88,11 @@ void* CFlashUpdateCheck::c4u_proc(void*) pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, 0); pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0); + CFlashUpdate flashupdate; + //printf("[CFlashUpdateCheck] %s: starting loop\n", __FUNCTION__); while(1) { - CFlashUpdate flashupdate; - //printf("[CFlashUpdateCheck]: check for updates\n"); if (flashupdate.checkOnlineVersion()) { diff --git a/src/gui/update_check.h b/src/gui/update_check.h index bd57c814b..808757787 100644 --- a/src/gui/update_check.h +++ b/src/gui/update_check.h @@ -39,7 +39,6 @@ class CFlashUpdateCheck pthread_t c4u_thread; static void* c4u_proc(void *arg); - }; #endif // __update_check__