[Asterisk-code-review] res pjsip outbound publish.c: Remove redundant flag check. (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Thu Apr 28 16:58:31 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/2720

Change subject: res_pjsip_outbound_publish.c: Remove redundant flag check.
......................................................................

res_pjsip_outbound_publish.c: Remove redundant flag check.

Change-Id: I0da80a3c3e0eae0c52ff27e7412ba027d6f52353
---
M res/res_pjsip_outbound_publish.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/20/2720/1

diff --git a/res/res_pjsip_outbound_publish.c b/res/res_pjsip_outbound_publish.c
index 5b27bdf..0fe2e3e 100644
--- a/res/res_pjsip_outbound_publish.c
+++ b/res/res_pjsip_outbound_publish.c
@@ -389,7 +389,7 @@
 			} 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;

-- 
To view, visit https://gerrit.asterisk.org/2720
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0da80a3c3e0eae0c52ff27e7412ba027d6f52353
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list