diff --git a/imperative/src/impl/interpreter_impl.cpp b/imperative/src/impl/interpreter_impl.cpp index 3f242c1bd0c104f617850d62772be91fa60041e9..54ebd96e9a73315a0b5510ac03f845730e42ae34 100644 --- a/imperative/src/impl/interpreter_impl.cpp +++ b/imperative/src/impl/interpreter_impl.cpp @@ -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);