asterisk/res/parking
Joshua Colp 2504f97b01 res_parking: Fix crash due to race condition when unloading.
There is currently a race condition when unloading the res_parking
module. Depending on the will of the universe the subscription
invocation may occur AFTER the module is unloaded. This is because
the module does NOT use stasis_unsubscribe_and_join when terminating
the subscription. It merely uses stasis_unsubscribe.

This change makes it use stasis_unsubscribe_and_join which is documented
for usage in this exact scenario.

AST-1520 #close

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

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2015-01-27 11:47:57 +00:00
..
parking_applications.c Investigate and fix memory leaks in Asterisk 2015-01-23 15:21:56 +00:00
parking_bridge.c Allow Asterisk to compile under GCC 4.10 2014-05-09 22:49:26 +00:00
parking_bridge_features.c main/stasis: Allow subscriptions to use a threadpool for message delivery 2014-12-01 17:59:21 +00:00
parking_controller.c res_parking: Remove setting useless flag. 2013-10-18 22:52:35 +00:00
parking_devicestate.c res_parking: Add parking_devicestate.c left out from previous commit 2013-06-07 20:51:19 +00:00
parking_manager.c res_parking: Fix crash due to race condition when unloading. 2015-01-27 11:47:57 +00:00
parking_tests.c parking_tests.c: Add missing newline on a unit test message. 2014-11-18 19:12:02 +00:00
parking_ui.c Strip down the old event system 2013-08-17 14:39:27 +00:00
res_parking.h Parking: Add 'AnnounceChannel' argument to manager action 'Park' 2014-05-02 16:06:40 +00:00