Skip to content

Commit 6193200

Browse files
author
blue-2357
committed
Disconnect WiFiClient on destruct
1 parent 385f2d0 commit 6193200

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)