mirror of
				https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
				synced 2025-10-31 08:42:38 +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() | bool AsyncClient::send() | ||||||
| { | { | ||||||
|  |     if (!connected()) return false; | ||||||
|  |  | ||||||
|     fd_set sockSet_w; |     fd_set sockSet_w; | ||||||
|     struct timeval tv; |     struct timeval tv; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user