Browse Source

Bugfix: Decrement total_submitting when stale shares are discarded before any submission attempts

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

+ 2 - 0
miner.c

@@ -3709,6 +3709,8 @@ static void *submit_work_thread(__maybe_unused void *userdata)
 				}
 				}
 				++wip;
 				++wip;
 			}
 			}
+			else
+				--total_submitting;
 		}
 		}
 		if (unlikely(shutting_down && !wip))
 		if (unlikely(shutting_down && !wip))
 			break;
 			break;