]> granicus.if.org Git - esp-idf/commitdiff
ble_mesh: fix canceling publication retransmit timer
authorlly <lly@espressif.com>
Mon, 2 Sep 2019 07:04:52 +0000 (15:04 +0800)
committerlly <lly@espressif.com>
Mon, 9 Sep 2019 09:15:16 +0000 (17:15 +0800)
components/bt/esp_ble_mesh/mesh_core/access.c

index 529d8ebab1c75bd9f38a70009112ce75ee0a4aad..8b04e926cf23ca22f6fdb786a6188e2dd7fff15f 100644 (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)