Browse Source

Merge commit 'fd08ecd' into bfgminer

Luke Dashjr 12 years ago
parent
commit
37b77a79a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -6954,10 +6954,10 @@ void clear_stratum_shares(struct pool *pool)
 
 	mutex_lock(&sshare_lock);
 	HASH_ITER(hh, stratum_shares, sshare, tmpshare) {
+		work = sshare->work;
 		if (sshare->work->pool == pool && work->thr_id < my_mining_threads) {
 			HASH_DEL(stratum_shares, sshare);
 			
-			work = sshare->work;
 			sharelog("disconnect", work);
 			
 			diff_cleared += sshare->work->work_difficulty;