mirror of
https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
synced 2025-10-30 16:15:40 +01:00
Return false on send() if socket not connected
This commit is contained in:
@@ -841,6 +841,8 @@ size_t AsyncClient::add(const char* data, size_t size, uint8_t apiflags)
|
||||
|
||||
bool AsyncClient::send()
|
||||
{
|
||||
if (!connected()) return false;
|
||||
|
||||
fd_set sockSet_w;
|
||||
struct timeval tv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user