1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Cleanup API thread if it exits early

This commit is contained in:
Kano 2011-12-24 10:45:45 +11:00
parent 7abe8c3baf
commit d80e0ef4ce

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;
}