1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-04 19:14:26 +00:00

Check for presence of thr in icarus get nonce for startup nonce testing to work.

This commit is contained in:
Con Kolivas 2013-10-25 05:10:08 +11:00
parent f8fdff4ad2
commit e22035f024

View File

@ -497,7 +497,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
return ICA_NONCE_OK;
rc = SECTOMS(tdiff(tv_finish, tv_start));
if (thr->work_restart) {
if (thr && thr->work_restart) {
applog(LOG_DEBUG, "Icarus Read: Work restart at %d ms", rc);
return ICA_NONCE_RESTART;
}