Don't unsubscribe from the AMI message router from manager_bridges
authorMatthew Jordan <mjordan@digium.com>
Sat, 3 Aug 2013 03:53:46 +0000 (03:53 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 3 Aug 2013 03:53:46 +0000 (03:53 +0000)
The AMI message router is owned wholly by manager.c. Previously, each of the
manager_{item} source files had their own message router and they unsubscribed
from each; once they moved over to using a single message router only a single
unsubscribe became necessary.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396158 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager_bridges.c

index 77533c6..d563c2b 100644 (file)
@@ -449,8 +449,6 @@ static int manager_bridge_info(struct mansession *s, const struct message *m)
 
 static void manager_bridging_cleanup(void)
 {
-       stasis_message_router_unsubscribe(bridge_state_router);
-       bridge_state_router = NULL;
        stasis_unsubscribe(topic_forwarder);
        topic_forwarder = NULL;
 }