Skip to content

Commit

Permalink
remove double WiFi.disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Oct 20, 2023
1 parent 0ed4667 commit 237d631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/WebStatusService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void WebStatusService::WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) {
switch (event) {
case ARDUINO_EVENT_WIFI_STA_DISCONNECTED:
EMSESP::logger().warning("WiFi disconnected. Reason code=%s", disconnectReason(info.wifi_sta_disconnected.reason)); // IDF 4.0
WiFi.disconnect(true);
// WiFi.disconnect(true); // this is done in NetworkSettingsService
EMSESP::system_.has_ipv6(false);
break;

Expand Down

0 comments on commit 237d631

Please sign in to comment.