]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_outbound_publish.c: Remove redundant flag check. 20/2720/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 25 Apr 2016 21:00:30 +0000 (16:00 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 28 Apr 2016 21:57:20 +0000 (16:57 -0500)
Change-Id: I0da80a3c3e0eae0c52ff27e7412ba027d6f52353

res/res_pjsip_outbound_publish.c

index 5b27bdf0dd56ac20e94a1f64c42bd6c0e9dc151d..0fe2e3e5d80bfcd81ef3cfc803e032d1acfe7efe 100644 (file)
@@ -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;