Skip to content

Commit 237d631

Browse files
committed
remove double WiFi.disconnect
1 parent 0ed4667 commit 237d631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/WebStatusService.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void WebStatusService::WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) {
3737
switch (event) {
3838
case ARDUINO_EVENT_WIFI_STA_DISCONNECTED:
3939
EMSESP::logger().warning("WiFi disconnected. Reason code=%s", disconnectReason(info.wifi_sta_disconnected.reason)); // IDF 4.0
40-
WiFi.disconnect(true);
40+
// WiFi.disconnect(true); // this is done in NetworkSettingsService
4141
EMSESP::system_.has_ipv6(false);
4242
break;
4343

0 commit comments

Comments
 (0)