Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
611db61d
Commit
611db61d
authored
May 14, 2018
by
chemicstry
Committed by
Me No Dev
May 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix WiFiClient error handling (#1388)
parent
00f96243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
libraries/WiFi/src/WiFiClient.cpp
libraries/WiFi/src/WiFiClient.cpp
+1
-2
No files found.
libraries/WiFi/src/WiFiClient.cpp
View file @
611db61d
...
...
@@ -313,7 +313,7 @@ uint8_t WiFiClient::connected()
if
(
_connected
)
{
uint8_t
dummy
;
int
res
=
recv
(
fd
(),
&
dummy
,
0
,
MSG_DONTWAIT
);
if
(
res
<
=
0
)
{
if
(
res
<
0
)
{
switch
(
errno
)
{
case
ENOTCONN
:
case
EPIPE
:
...
...
@@ -328,7 +328,6 @@ uint8_t WiFiClient::connected()
}
}
else
{
// Should never happen since requested 0 bytes
_connected
=
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment