Browse Source

Bugfix: Use new cgpu->thr for longpoll waking

Luke Dashjr 13 years ago
parent
commit
c3d8df5a52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -2455,7 +2455,7 @@ static void restart_threads(void)
 		cgpu = devices[i];
 		cgpu = devices[i];
 		for (j = 0; j < cgpu->threads; ++j)
 		for (j = 0; j < cgpu->threads; ++j)
 		{
 		{
-			thr = &cgpu->thread[j];
+			thr = cgpu->thr[j];
 			fd = thr->_work_restart_fd_w;
 			fd = thr->_work_restart_fd_w;
 			thr->work_restart = true;
 			thr->work_restart = true;
 			if (fd != -1)
 			if (fd != -1)