mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Ensure dummy channels get a stasis topic.
Fixes test failure introduced in r382685. (issue ASTERISK-20887) (issue ASTERISK-20959) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -337,6 +337,10 @@ void stasis_forward_message(struct stasis_topic *topic, struct stasis_topic *pub
|
||||
struct stasis_subscription **subscribers = NULL;
|
||||
size_t num_subscribers, i;
|
||||
|
||||
ast_assert(topic != NULL);
|
||||
ast_assert(publisher_topic != NULL);
|
||||
ast_assert(message != NULL);
|
||||
|
||||
/* Copy the subscribers, so we don't have to hold the mutex for long */
|
||||
{
|
||||
SCOPED_AO2LOCK(lock, topic);
|
||||
|
Reference in New Issue
Block a user