mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-13 15:41:17 +00:00
check att_write_callback != null before calling it
This commit is contained in:
parent
760b5fafed
commit
46b8af2f04
@ -926,7 +926,7 @@ static uint16_t handle_prepare_write_request(att_connection_t * att_connection,
|
||||
* @brief transcation queue of prepared writes, e.g., after disconnect
|
||||
*/
|
||||
void att_clear_transaction_queue(){
|
||||
if (!att_clear_transaction_queue) return;
|
||||
if (!att_write_callback) return;
|
||||
(*att_write_callback)(0, ATT_TRANSACTION_MODE_CANCEL, 0, NULL, 0, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user