Skip to content

Commit 51e222c

Browse files
author
Adam Suwała
committed
fix based on pullrequest me-no-dev#128
1 parent 225f58d commit 51e222c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Fixes
44
- callbecks to error and disconnect handlers are ommited if one of closing methods was called
5+
- pullrequest #128 - Update ESPAsyncTCPbuffer.cpp - missing response
56

67
### Async TCP Library for ESP8266 Arduino
78

src/ESPAsyncTCPbuffer.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ void AsyncTCPbuffer::_sendBuffer() {
386386
* @param len
387387
*/
388388
void AsyncTCPbuffer::_rxData(uint8_t *buf, size_t len) {
389-
if(!_client || !_client->connected()) {
389+
//FIX do not check connected here, otherwise miss responce
390+
if(!_client /*|| !_client->connected()*/) {
390391
DEBUG_ASYNC_TCP("[A-TCP] not connected!\n");
391392
return;
392393
}
@@ -447,7 +448,8 @@ void AsyncTCPbuffer::_rxData(uint8_t *buf, size_t len) {
447448
*
448449
*/
449450
size_t AsyncTCPbuffer::_handleRxBuffer(uint8_t *buf, size_t len) {
450-
if(!_client || !_client->connected() || _RXbuffer == NULL) {
451+
//FIX do not check connected here, otherwise miss responce
452+
if(!_client /*|| !_client->connected()*/ || _RXbuffer == NULL) {
451453
return 0;
452454
}
453455

0 commit comments

Comments
 (0)