summaryrefslogtreecommitdiff
path: root/res/res_pjsip_outbound_publish.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-04-25 16:00:30 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-04-28 16:57:20 -0500
commit76ea4cfaaeec33328b0852fa9e37682f29569ba4 (patch)
treea278ed938ec29fbb57bbeacb4c519accc44c48b9 /res/res_pjsip_outbound_publish.c
parent057ed94048b591a74322bbdb152e65f567091518 (diff)
res_pjsip_outbound_publish.c: Remove redundant flag check.
Change-Id: I0da80a3c3e0eae0c52ff27e7412ba027d6f52353
Diffstat (limited to 'res/res_pjsip_outbound_publish.c')
-rw-r--r--res/res_pjsip_outbound_publish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_outbound_publish.c b/res/res_pjsip_outbound_publish.c
index 5b27bdf0d..0fe2e3e5d 100644
--- a/res/res_pjsip_outbound_publish.c
+++ b/res/res_pjsip_outbound_publish.c
@@ -389,7 +389,7 @@ static void sip_outbound_publish_synchronize(struct ast_sip_event_publisher_hand
} else {
state->client->started = 1;
}
- } else if (state->client->started && !handler && removed && !strcmp(publish->event, removed->event_name)) {
+ } else if (!handler && removed && !strcmp(publish->event, removed->event_name)) {
/* If the publisher client has been started but it is going away stop it */
removed->stop_publishing(state->client);
state->client->started = 0;