projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
res/res_stasis: Fix accidental subscription to 'all' bridge topic
[asterisk/asterisk.git]
/
res
/
res_stasis.c
diff --git
a/res/res_stasis.c
b/res/res_stasis.c
index
69e9b93
..
abca895
100644
(file)
--- a/
res/res_stasis.c
+++ b/
res/res_stasis.c
@@
-1294,7
+1294,9
@@
int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc,
if (bridge != last_bridge) {
app_unsubscribe_bridge(app, last_bridge);
- app_subscribe_bridge(app, bridge);
+ if (bridge) {
+ app_subscribe_bridge(app, bridge);
+ }
}
if (bridge) {