ble_mesh: fix canceling publication retransmit timer

This commit is contained in:
lly 2019-09-02 15:04:52 +08:00
parent 10bffaebf1
commit 3f6968e31b

View File

@ -326,11 +326,6 @@ static void mod_publish(struct k_work *work)
if (err) {
BT_ERR("%s, Publishing failed (err %d)", __func__, err);
}
if (pub->count) {
/* Retransmissions also control the timer */
k_delayed_work_cancel(&pub->timer);
}
}
struct bt_mesh_elem *bt_mesh_model_elem(struct bt_mesh_model *mod)