We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda3392 commit c5c1362Copy full SHA for c5c1362
ports/esp32s2/common-hal/wifi/Radio.c
@@ -105,6 +105,10 @@ mp_obj_t common_hal_wifi_radio_start_scanning_networks(wifi_radio_obj_t *self) {
105
}
106
107
void common_hal_wifi_radio_stop_scanning_networks(wifi_radio_obj_t *self) {
108
+ // Return early if self->current_scan is NULL to avoid hang
109
+ if (self->current_scan == NULL) {
110
+ return;
111
+ }
112
// Free the memory used to store the found aps.
113
wifi_scannednetworks_deinit(self->current_scan);
114
self->current_scan = NULL;
0 commit comments