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:
Anthony Minessale 2013-04-08 13:00:24 -05:00
parent 61c65b47ca
commit 388bd7467a
1 changed files with 1 additions and 2 deletions

View File

@ -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)