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

Just keep whatever longpoll we have if it's working instead of risking the stop/start dereference problem.

This commit is contained in:
Con Kolivas 2011-09-15 20:05:22 +10:00
parent ae6fe96593
commit 8566ed44d2

2
main.c
View File

@ -4467,6 +4467,8 @@ static void start_longpoll(void)
static void restart_longpoll(void) static void restart_longpoll(void)
{ {
if (want_longpoll && have_longpoll)
return;
stop_longpoll(); stop_longpoll();
if (want_longpoll) if (want_longpoll)
start_longpoll(); start_longpoll();