Skip to content

Commit 57c3650

Browse files
authored
Disconnect WiFiClient on destruct
1 parent b82d0e1 commit 57c3650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFiClient.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ WiFiClient::WiFiClient(int fd):sockfd(fd),_connected(true),next(NULL)
3636

3737
WiFiClient::~WiFiClient()
3838
{
39+
stop();
3940
}
4041

4142
WiFiClient & WiFiClient::operator=(const WiFiClient &other)

0 commit comments

Comments
 (0)