diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index c681ce3..d768c28 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -68,6 +68,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, std::cerr << "Python interpreter not initialized" << std::endl; return; } + boost::python::gil_scoped_acquire gil; PyGILState_STATE gstate = PyGILState_Ensure(); try {