forked from espressif/esp-protocols
This fixes the issue that if Wi-Fi is stopped from a shutdown handler, the code in connect.c tries to reconnect, and fails because Wi-Fi is already stopped. Also make the error check in connect.c less strict. * Original commit: espressif/esp-idf@28a440521e