its going to drop anyways

This commit is contained in:
J. Nick Koston
2026-01-02 11:37:56 -10:00
parent 5c890fcfc4
commit d77fc596a9

View File

@@ -242,11 +242,7 @@ bool WiFiComponent::wifi_sta_connect_(const WiFiAP &ap) {
if (!this->wifi_mode_(true, {}))
return false;
// Skip disconnect for roaming - let the SDK handle the transition
// This preserves TCP connections during the brief AP switch
if (!this->roaming_connect_active_) {
this->wifi_disconnect_();
}
this->wifi_disconnect_();
struct station_config conf {};
memset(&conf, 0, sizeof(conf));