Commit e90cf62af123d7e78e7ccd08e6046309f372b132

Con Kolivas 2013-05-26T17:07:27

Unset the work restart flag sooner in avalon_flush_work to avoid re-entering the flush work function and just reset the queued counter instead of rotating the array to avoid runs of no valid work.