OSDN Git Service

An attempt to unregister a handler that's no longer registered should not cause an...
authorAndreas Huber <andih@google.com>
Mon, 18 Oct 2010 22:06:04 +0000 (15:06 -0700)
committerAndreas Huber <andih@google.com>
Mon, 18 Oct 2010 22:06:04 +0000 (15:06 -0700)
commitf200777290d2e3e8b580c512cc0808eae9790705
tree73dc5d30a8d51163f5bf88c3d745b23efd3cd4b7
parentb5b39d2c348f54a40fc800c9efec17d7f1e8a486
An attempt to unregister a handler that's no longer registered should not cause an assertion.

There are edge cases in which a handler attempts to unregister itself while on another thread a message fails to be delivered to that very handler and causes automatic unregistration. In this case the handler's good cleanup intentions are thwarted by the CHECK.

Change-Id: I4e41b5e7b619159ecce4856c15cccca031a28b5b
related-to-bug: 3101247
QA-impact: no(!!!) risk
media/libstagefright/foundation/ALooperRoster.cpp