ble_mesh: Fix an issue which may cause task block

This commit is contained in:
lly
2020-01-17 21:26:45 +08:00
committed by baohongde
parent 5f04a02bb1
commit 3d49e49210

View File

@ -311,8 +311,8 @@ static void seg_tx_send_unacked(struct seg_tx *tx)
if (!(BLE_MESH_ADV(seg)->seg.attempts--)) { if (!(BLE_MESH_ADV(seg)->seg.attempts--)) {
BT_WARN("Ran out of retransmit attempts"); BT_WARN("Ran out of retransmit attempts");
seg_tx_complete(tx, -ETIMEDOUT);
bt_mesh_tx_seg_unlock(); bt_mesh_tx_seg_unlock();
seg_tx_complete(tx, -ETIMEDOUT);
return; return;
} }