mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Merge pull request #62 from kanoi/master
Cleanup API thread if it exits early
This commit is contained in:
commit
19d5a19761
4
main.c
4
main.c
@ -3770,10 +3770,14 @@ static void *workio_thread(void *userdata)
|
|||||||
|
|
||||||
static void *api_thread(void *userdata)
|
static void *api_thread(void *userdata)
|
||||||
{
|
{
|
||||||
|
struct thr_info *mythr = userdata;
|
||||||
|
|
||||||
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
|
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
|
||||||
|
|
||||||
api();
|
api();
|
||||||
|
|
||||||
|
mythr->pth = 0L;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user