update-check: move init of object CFlashUpdate out of while-loop

Origin commit data
------------------
Commit: 432b2b055d
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-04 (Mon, 04 Sep 2017)

Origin message was:
------------------
- update-check: move init of object CFlashUpdate out of while-loop
This commit is contained in:
vanhofen
2017-09-04 23:24:22 +02:00
parent d40fe59ed2
commit 9343360be9
2 changed files with 2 additions and 3 deletions

View File

@@ -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())
{

View File

@@ -39,7 +39,6 @@ class CFlashUpdateCheck
pthread_t c4u_thread;
static void* c4u_proc(void *arg);
};
#endif // __update_check__