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
This commit is contained in:
parent
61c65b47ca
commit
388bd7467a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue