mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
The assertion that peer was not found on final event
message was being triggered on configuration reload. This patch changes that case to just return instead. Review: https://reviewboard.asterisk.org/r/3953/ Commited in trunk revision 422358 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@422359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -16650,7 +16650,10 @@ static void mwi_event_cb(void *userdata, struct stasis_subscription *sub, struct
|
||||
struct sip_peer *peer = sip_find_peer(peer_name, NULL, TRUE, FINDALLDEVICES, FALSE, 0);
|
||||
|
||||
if (stasis_subscription_final_message(sub, msg)) {
|
||||
ast_assert(peer == NULL);
|
||||
if (peer) {
|
||||
/* configuration reloaded */
|
||||
return;
|
||||
}
|
||||
ast_free(peer_name);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user