1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Merge pull request #62 from kanoi/master

Cleanup API thread if it exits early
This commit is contained in:
Con Kolivas 2011-12-23 15:50:00 -08:00
commit 19d5a19761

4
main.c
View File

@ -3770,10 +3770,14 @@ static void *workio_thread(void *userdata)
static void *api_thread(void *userdata)
{
struct thr_info *mythr = userdata;
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
api();
mythr->pth = 0L;
return NULL;
}