update_settings: fix update autocheck on/off handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: 30b47b60ed
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-12 (Fri, 12 Jan 2018)

Origin message was:
------------------
- update_settings: fix update autocheck on/off handling

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-01-12 11:31:55 +01:00
parent c08971b83b
commit f8735f6f35
3 changed files with 19 additions and 2 deletions

View File

@@ -79,6 +79,9 @@ void CFlashUpdateCheck::stopThread()
pthread_cancel(c4u_thread);
}
c4u_thread = 0;
if (access(C4U_FLAGFILE, F_OK) == 0)
unlink(C4U_FLAGFILE);
}
void* CFlashUpdateCheck::c4u_proc(void*)