Prevent slow graceful shutdown when outbound publications never started.
authorMark Michelson <mmichelson@digium.com>
Wed, 14 Jan 2015 20:39:01 +0000 (20:39 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 14 Jan 2015 20:39:01 +0000 (20:39 +0000)
commit67234b3ee2806126513abeecbe85d59e632c8fcf
tree0fcb252d9ed6ae23cd969902bc7a9076e6ff3d88
parent3eec8e4c4473b7b5fe41af71b61b264fef20d402
Prevent slow graceful shutdown when outbound publications never started.

The code was missing the case for explicitly destroying an outbound publication
when Asterisk had never actually published anything. The result was that Asterisk
would hang for a while on a graceful shutdown.

With this change, the case is taken into account, and on a graceful shutdown, these
publications are destroyed without the need to actually send a PUBLISH request.

ASTERISK-24655 #close
Reported by Kevin Harwell

Review: https://reviewboard.asterisk.org/r/4325
........

Merged revisions 430608 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_outbound_publish.c