Skip to content

Commit

Permalink
[ESP32] Do not delete default event loop
Browse files Browse the repository at this point in the history
The PlatformManagerImpl::_InitChipStack() does not create default event
loop, so the PlatformManagerImpl::_Shutdown() shall not delete it.
  • Loading branch information
arkq committed Jun 28, 2024
1 parent dc980b8 commit 58572b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/ESP32/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void PlatformManagerImpl::_Shutdown()

Internal::GenericPlatformManagerImpl_FreeRTOS<PlatformManagerImpl>::_Shutdown();

esp_event_loop_delete_default();
esp_event_handler_unregister(IP_EVENT, ESP_EVENT_ANY_ID, PlatformManagerImpl::HandleESPSystemEvent);
}

void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t eventBase, int32_t eventId, void * eventData)
Expand Down

0 comments on commit 58572b3

Please sign in to comment.