In some rare and stupid situations, "finish" callbacks can be called recursively (see the test). This patch fixes the bug by introducing _is_finished flag attribute.
Now that _is_finished flag ensures the finish callbacks are called only once, I removed the code that cleared _finish_cb. So the behavior is rolled back to versions <= 0.18
In some rare and stupid situations, "finish" callbacks can be called recursively (see the test). This patch fixes the bug by introducing _is_finished flag attribute.
Now that _is_finished flag ensures the finish callbacks are called only once, I removed the code that cleared _finish_cb. So the behavior is rolled back to versions <= 0.18