]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis: trigger cleanup after update
authorKevin Harwell <kharwell@digium.com>
Mon, 27 Jan 2020 17:44:45 +0000 (11:44 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 30 Jan 2020 16:21:26 +0000 (10:21 -0600)
commit1627e8eddc378b7df54f298ca0f4a89294a10864
tree668a2e461404279c151d3e83035146835a5276f4
parent42c51263b9ec8a0bb349af39e28ff51ed3d682ee
res_stasis: trigger cleanup after update

The cleanup code in stasis shuts down applications if they are in a deactivated
state, and no longer have explicit subscriptions. When registering an app the
cleanup code was running before calling 'update'. When it should be executed
after 'update' since a call to register may re-activate the app. We don't want
it to shutdown before the 'update' otherwise the app won't be re-activated,
or registered.

This patch makes it so the cleanup code is executed post 'update'.

ASTERISK-28679 #close

Change-Id: I8f2c0b17e33bb8128441567b97fd4c7bf74a327b
(cherry picked from commit dc9875815c441bcb78370cbf0d331ec46e7abb1d)
res/res_stasis.c