diff --git a/sgminer.c b/sgminer.c index b9448e15..3b053e93 100644 --- a/sgminer.c +++ b/sgminer.c @@ -3138,7 +3138,7 @@ static void kill_mining(void) if (thr && PTH(thr) != 0L) pth = &thr->pth; thr_info_cancel(thr); -#if !defined(WIN32) || defined(__MINGW64_VERSION_MAJOR) +#ifndef WIN32 if (pth && *pth) pthread_join(*pth, NULL); #else