Skip to content

Commit 9be3f97

Browse files
committed
Disconnect WiFiClient on destruct
1 parent b497cc5 commit 9be3f97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: 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)