]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent slow graceful shutdown when outbound publications never started.
authorMark Michelson <mmichelson@digium.com>
Wed, 14 Jan 2015 20:27:18 +0000 (20:27 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 14 Jan 2015 20:27:18 +0000 (20:27 +0000)
commite370c9e68e802708f18dd5c4f0abd2cb690bd287
tree46a21af0eb5d47696f0ff29d50097e38f3adab28
parent89a431df8475df407a9e305e4cd8a16e6d231e93
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

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