提交 388bd746 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5284 --resolve ready is meant to signify that the object is ready for…

FS-5284 --resolve ready is meant to signify that the object is ready for external use so setting it to 1 before the bind is sufficient
上级 61c65b47
......@@ -57,12 +57,11 @@ SWITCH_DECLARE_CONSTRUCTOR EventConsumer::EventConsumer(const char *event_name,
switch_core_new_memory_pool(&pool);
switch_queue_create(&events, len, pool);
node_index = 0;
ready = 1;
if (!zstr(event_name)) {
bind(event_name, subclass_name);
}
ready = 1;
}
SWITCH_DECLARE(int) EventConsumer::bind(const char *event_name, const char *subclass_name)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论