mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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())
|
||||
{
|
||||
|
@@ -39,7 +39,6 @@ class CFlashUpdateCheck
|
||||
|
||||
pthread_t c4u_thread;
|
||||
static void* c4u_proc(void *arg);
|
||||
|
||||
};
|
||||
|
||||
#endif // __update_check__
|
||||
|
Reference in New Issue
Block a user