提交 8ed2077b 编写于 作者: M Megvii Engine Team

fix(imperative/interpreter): reset m_waitee on exception

GitOrigin-RevId: ecf5245d9c0849b326efc0a343b22017c13bf7dc
上级 8fe865d8
......@@ -483,6 +483,8 @@ void ChannelImpl::process_one_task(Command& cmd) {
void ChannelImpl::check_worker_exc_unsafe() {
if (m_worker_exc) {
// for reuse interpreter_for_py after some exception tests
m_waitee = nullptr;
std::exception_ptr exc;
std::swap(exc, m_worker_exc);
std::rethrow_exception(exc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册