mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-04 13:10:53 +08:00
修复gil线程安全bug
This commit is contained in:
@@ -228,6 +228,7 @@ PythonInvoker::PythonInvoker() {
|
||||
_rel = new py::gil_scoped_release;
|
||||
|
||||
NoticeCenter::Instance().addListener(this, Broadcast::kBroadcastReloadConfig, [this] (BroadcastReloadConfigArgs) {
|
||||
py::gil_scoped_acquire guard;
|
||||
if (_on_reload_config) {
|
||||
_on_reload_config();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user