Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix worker proc hanging at exception (#172)
Not all exceptions in Task.run will lead to logging_thread.stop(), which is required that the proc does not hang at exit, because logging_thread was not a daemon thread. We make it a daemon thread now. And also, we additionally make extra sure that logging_thread.stop() is called. (Although there are maybe still other rare cases where this is not effective, so the daemon thread property is still important as well.) Fix #171.
- Loading branch information