commit | 880574badbb1b42613520c416bccc05fb459584d | [log] [tgz] |
---|---|---|
author | xutianguo <xutianguo@xiaomi.com> | Fri Sep 22 11:27:10 2017 +0800 |
committer | Myles Watson <mylesgw@google.com> | Thu Sep 28 04:14:42 2017 +0000 |
tree | 1cfa706c8d27ec4155a1688ce1617bc4f805fc8f | |
parent | f427803a7d9a9ac8651aff40bd2b29881545842a [diff] |
GATT: Thread-safe ClientHandler invocation Handler could be null when do cleanup in main thread, then NPE will happen if the ClientHandler thread is still processing messages. Bug: 66544093 Test: Enable Bluetooth and search Bluetooth devices, turn off the Bluetooth and repeat above steps. Change-Id: Ie8a0d71236bd96e31b5524bcc4690796ad34d68f Signed-off-by: xutianguo <xutianguo@xiaomi.com>