Browse Source

Merge commit '73d35cb' into bfgminer-2.6.x

Luke Dashjr 13 years ago
parent
commit
3d1ca6f118
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -2211,7 +2211,9 @@ static struct work *make_work(void)
 
 	if (unlikely(!work))
 		quit(1, "Failed to calloc work in make_work");
+	mutex_lock(&control_lock);
 	work->id = total_work++;
+	mutex_unlock(&control_lock);
 	return work;
 }