mirror of
				https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
				synced 2025-10-31 00:32:37 +01:00 
			
		
		
		
	Fix failure to outbound-connect introduced by previous commit
Commit a5ae72c0f6 forgot to include
sockets with in-progress connections as writable, which broke all
outgoing connections. Fixed.
			
			
This commit is contained in:
		| @@ -866,7 +866,7 @@ bool AsyncClient::send() | |||||||
| bool AsyncClient::_pendingWrite(void) | bool AsyncClient::_pendingWrite(void) | ||||||
| { | { | ||||||
|     xSemaphoreTake(_write_mutex, (TickType_t)portMAX_DELAY); |     xSemaphoreTake(_write_mutex, (TickType_t)portMAX_DELAY); | ||||||
|     bool pending = (_writeQueue.size() > 0); |     bool pending = ((_conn_state > 0 && _conn_state < 4) || _writeQueue.size() > 0); | ||||||
|     xSemaphoreGive(_write_mutex); |     xSemaphoreGive(_write_mutex); | ||||||
|     return pending; |     return pending; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user