Antoine Pitrou added the comment: This is tricky to reproduce but can definitely happen. It seems it is enough to release the lock when done, why did you have to move the `task_handler._state = TERMINATE` line in your patch?
---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com