Browse Source

Merge pull request #62 from kanoi/master

Cleanup API thread if it exits early
nfactor-troky
Con Kolivas 13 years ago
parent
commit
19d5a19761
  1. 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…
Cancel
Save