diff options
Diffstat (limited to 'main/stasis_endpoints.c')
-rw-r--r-- | main/stasis_endpoints.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/stasis_endpoints.c b/main/stasis_endpoints.c index 252614f62..a7b7f556b 100644 --- a/main/stasis_endpoints.c +++ b/main/stasis_endpoints.c @@ -153,6 +153,10 @@ int ast_endpoint_stasis_init(void) { ast_register_atexit(endpoints_stasis_shutdown); + if (STASIS_MESSAGE_TYPE_INIT(ast_endpoint_snapshot_type) != 0) { + return -1; + } + if (!endpoint_topic_all) { endpoint_topic_all = stasis_topic_create("endpoint_topic_all"); } @@ -171,9 +175,5 @@ int ast_endpoint_stasis_init(void) return -1; } - if (STASIS_MESSAGE_TYPE_INIT(ast_endpoint_snapshot_type) != 0) { - return -1; - } - return 0; } |