Parent: d6f93380ff280cf5c0c09086135f4496dc6f8073
Author: Radoslaw Jablonski <radoslawjablonski@gmail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-12-27 12:06:15
Tree: c79b1f1e4ca1fe11575a126407670ffcfce5d763
audio: Use headset_shutdown in headset_setconf_cb If pending connection will stay after state has been changed to HEADSET_STATE_DISCONNECTED, then crash may happen (e.g. when hs_connect will be called quickly again after that) To avoid that kind of problems using headset_shutdown, which does necessary cleanup first (finalizes pending connections) and after that changes state to HEADSET_STATE_DISCONNECTED.
Diffstat
| M | audio/media.c | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)