Fix a work-counting bug introduced by the workqueue merge
commit227422155721597d7ad528749f7295e92f1ce9fc
authorNick Mathewson <nickm@torproject.org>
Thu, 5 Feb 2015 17:17:08 +0000 (5 12:17 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 5 Feb 2015 17:17:08 +0000 (5 12:17 -0500)
tree879c2d2027d3f98bdf5da2c81181110b44a6db94
parent3f993dacc141a105d3e520cf1901dbb635c29ea2
Fix a work-counting bug introduced by the workqueue merge

David Goulet finds that when he runs a busy relay for a while with the
latest version of the git code, the number of onionskins handled
slowly dwindles to zero, with total_pending_tasks wedged at its
maximum value.

I conjecture this is because the total_pending_tasks variable isn't
decremented when we successfully cancel a job.  Fixed that.

Fixes bug 14741; bugfix not on any released version of tor.
src/or/cpuworker.c