Fixed startup race condition which caused occasional stasis_mwi_state_type assertions.
authorDavid M. Lee <dlee@digium.com>
Wed, 22 May 2013 19:15:16 +0000 (19:15 +0000)
committerDavid M. Lee <dlee@digium.com>
Wed, 22 May 2013 19:15:16 +0000 (19:15 +0000)
commit8a5a09e62cd772202178a52383630291cb7ae145
tree6dda8ef621cdaa31d582d6ed608d54c1e0963bb5
parent1355e5d34fa9eee00104e9c507e154ab435537a8
Fixed startup race condition which caused occasional stasis_mwi_state_type assertions.

The caching topic (which refers to the message type) was created before the
message type. If the initial subscription message gets processed before
the type can be initialized, the assertion about using an uninitialized type
fires.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/app.c