1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-30 08:24:26 +00:00

Kill off the longpoll thread in kill_work only if have_longpoll is true.

This commit is contained in:
Con Kolivas 2011-12-24 23:36:41 +11:00
parent 8c066c4257
commit acf88e0da4

3
main.c
View File

@ -2551,7 +2551,8 @@ void kill_work(void)
if (opt_debug) if (opt_debug)
applog(LOG_DEBUG, "Killing off longpoll thread"); applog(LOG_DEBUG, "Killing off longpoll thread");
thr = &thr_info[longpoll_thr_id]; thr = &thr_info[longpoll_thr_id];
thr_info_cancel(thr); if (have_longpoll)
thr_info_cancel(thr);
if (opt_debug) if (opt_debug)
applog(LOG_DEBUG, "Killing off work thread"); applog(LOG_DEBUG, "Killing off work thread");