Return false on send() if socket not connected

This commit is contained in:
Alex Villacís Lasso
2021-08-15 14:32:39 -05:00
parent 2f49e04979
commit fbc6d97bc1

View File

@@ -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;