1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +00:00

metar fix?

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@112 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2005-08-15 03:27:04 +00:00
parent b23fa2c299
commit 578800c8a6

View File

@ -169,9 +169,12 @@ void update_metar()
status = 2; status = 2;
iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL); iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL);
} else if (status == 2) { /* thread is still running. let's kill it and start again */ } else if (status == 2) { /* thread is still running. let's kill it and start again */
pthread_cancel(thread1); /*pthread_cancel(thread1);
status = 2; status = 2;
iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL); iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL);*/
/*
* actually, lets do nothing for a while
*/
} else if (status == 1) { /* status must be 1 */ } else if (status == 1) { /* status must be 1 */
pthread_join(thread1, NULL); pthread_join(thread1, NULL);
status = 2; status = 2;