Skip to content

Commit

Permalink
Fix crash on calling teardown multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Johboh committed Mar 24, 2024
1 parent a617ed0 commit a94fc02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/impl/EspNowNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ void EspNowNode::teardown() {
esp_wifi_stop();
if (_netif_sta != nullptr) {
esp_netif_destroy_default_wifi(_netif_sta);
_netif_sta = nullptr;
}
esp_event_loop_delete_default();
esp_netif_deinit();
Expand Down

0 comments on commit a94fc02

Please sign in to comment.