From: Richard Mudgett Date: Mon, 25 Apr 2016 21:00:30 +0000 (-0500) Subject: res_pjsip_outbound_publish.c: Remove redundant flag check. X-Git-Tag: 13.10.0-rc1~113^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f07fdff548b0dcc5aa2259d7c37d3c37555abd;p=thirdparty%2Fasterisk.git res_pjsip_outbound_publish.c: Remove redundant flag check. Change-Id: I0da80a3c3e0eae0c52ff27e7412ba027d6f52353 --- diff --git a/res/res_pjsip_outbound_publish.c b/res/res_pjsip_outbound_publish.c index 74b06c2efc..60f9bbb177 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;