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

Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-09-04 23:24:22 +02:00
parent c081e3c1ef
commit 287add895f
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())
{