diff options
Diffstat (limited to 'main/manager_endpoints.c')
-rw-r--r-- | main/manager_endpoints.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/main/manager_endpoints.c b/main/manager_endpoints.c index 634283728..b5f5b31c2 100644 --- a/main/manager_endpoints.c +++ b/main/manager_endpoints.c @@ -46,14 +46,9 @@ static void manager_endpoints_shutdown(void) } static void endpoint_state_cb(void *data, struct stasis_subscription *sub, - struct stasis_topic *topic, struct stasis_message *message) { - /* XXX This looks wrong. Nothing should post or forward to a caching - * topic directly. Maybe ast_endpoint_topic() would be correct? I'd have - * to dig to make sure I don't break anything, though. - */ - stasis_forward_message(ast_manager_get_topic(), ast_endpoint_topic_all_cached(), message); + stasis_publish(ast_manager_get_topic(), message); } int manager_endpoints_init(void) |