There was an error while loading. Please reload this page.
1 parent cda7ced commit e967f7cCopy full SHA for e967f7c
1 file changed
src/pb_stub.cc
@@ -1059,15 +1059,7 @@ Stub::~Stub()
1059
}
1060
#endif
1061
1062
- // Ensure the interpreter is active before trying to clean up.
1063
- if (Py_IsInitialized()) {
1064
- py::gil_scoped_acquire acquire;
1065
- py::object async_event_loop_local(std::move(async_event_loop_));
1066
- py::object background_futures_local(std::move(background_futures_));
1067
- py::object model_instance_local(std::move(model_instance_));
1068
- py::object deserialize_bytes_local(std::move(deserialize_bytes_));
1069
- py::object serialize_bytes_local(std::move(serialize_bytes_));
1070
- }
+ DestroyPythonObjects();
1071
1072
stub_message_queue_.reset();
1073
parent_message_queue_.reset();
0 commit comments