-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix System vs Inet and BLE shutdown order (#7429)
#### Problem Inet and BLE contain pointers to the System::Layer, but in some implementations System::Layer is shut down first, leaving those pointers invalid. (There appear to be no current uses of those invalid pointers in the tree.) #### Change overview Shut down system layer after the others in: - `DeviceController::Shutdown()` - `GenericPlatformManagerImpl::_Shutdown()` - `JNI_OnUnload()` #### Testing - Some existing unit tests use the correct order (System last), so it's known to work. - Manually tested with platforms using `GenericPlatformManagerImpl::_Shutdown()` (Linux paired with ESP32).
- Loading branch information
1 parent
fa1e141
commit 1178668
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters