OSDN Git Service

Fix sending incorrect AVDTP commands after a timeout occurs
authorJohan Hedberg <johan.hedberg@nokia.com>
Fri, 20 Nov 2009 12:25:01 +0000 (14:25 +0200)
committerJohan Hedberg <johan.hedberg@nokia.com>
Fri, 20 Nov 2009 12:25:01 +0000 (14:25 +0200)
commit45442bb2903031ba186cb48ef93cae7ac6854912
tree289f5e961be32e4a0f88382aa899ae8509b8aaa3
parent0ea975c85c8e809d082f6833ced0f5e1fbe067dc
Fix sending incorrect AVDTP commands after a timeout occurs

Since request_timeout() does callbacks into a2dp.c before sending the
ABORT command we need to make sure that none of the callbacks can
trigger sending any further AVDTP commands. This is easiest done by
setting the stream->abort_int flag early in the request_timeout function
and then checking for it in the send_request function.
audio/avdtp.c