Skip to content

Commit 6c6edcf

Browse files
authored
Merge pull request #208 from JAndrassy/lwipclient_bool_fix
LwipClient - operator bool fix
2 parents 05feca5 + 209f419 commit 6c6edcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/lwIpWrapper/src/lwipClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ uint8_t lwipClient::status()
243243
lwipClient::operator bool()
244244
{
245245
/* -------------------------------------------------------------------------- */
246-
return (_tcp_client && (_tcp_client->state != TCP_CLOSING));
246+
return (_tcp_client != nullptr);
247247
}
248248

249249
/* -------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)