OSDN Git Service

Fix crashes in btif_sendmsg when worqueue not initialized
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 24 May 2016 16:15:50 +0000 (09:15 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 24 May 2016 18:55:45 +0000 (18:55 +0000)
commitd76f9fd10a809bc63fb5815fbf66a1caf0e0cd4b
tree6cbee27a1a93261d43711cca6feb6feed22cebc3
parent268d8ca5475b97de2b950bd29c7ac7b0e4427511
Fix crashes in btif_sendmsg when worqueue not initialized

Instead of crashing whole stack when trying to post task to
uninitialized queue, log error message. This can happen in two cases:
stack is not initialized yet, or we're shutting down and already cleaned
up the workqueue thread.

Bug: 28889608
Change-Id: I9b8652d27abc2489b2489997c928634b68433a3e
btif/src/btif_core.c