1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-08 21:14:14 +00:00

Only try to shut down work cleanly if we've successfully connected and started mining.

This commit is contained in:
Con Kolivas 2012-07-12 16:40:15 +10:00
parent 0ed757a020
commit cbef2a6a65

View File

@ -1983,6 +1983,9 @@ static void __kill_work(void)
struct thr_info *thr; struct thr_info *thr;
int i; int i;
if (!successful_connect)
return;
applog(LOG_INFO, "Received kill message"); applog(LOG_INFO, "Received kill message");
applog(LOG_DEBUG, "Killing off watchpool thread"); applog(LOG_DEBUG, "Killing off watchpool thread");