Skip to content

Commit

Permalink
fix based on pullrequest me-no-dev#128
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Suwała committed Nov 5, 2020
1 parent 225f58d commit 51e222c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

### Async TCP Library for ESP8266 Arduino

Expand Down
6 changes: 4 additions & 2 deletions src/ESPAsyncTCPbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ void AsyncTCPbuffer::_sendBuffer() {
* @param len
*/
void AsyncTCPbuffer::_rxData(uint8_t *buf, size_t len) {
if(!_client || !_client->connected()) {
//FIX do not check connected here, otherwise miss responce
if(!_client /*|| !_client->connected()*/) {
DEBUG_ASYNC_TCP("[A-TCP] not connected!\n");
return;
}
Expand Down Expand Up @@ -447,7 +448,8 @@ void AsyncTCPbuffer::_rxData(uint8_t *buf, size_t len) {
*
*/
size_t AsyncTCPbuffer::_handleRxBuffer(uint8_t *buf, size_t len) {
if(!_client || !_client->connected() || _RXbuffer == NULL) {
//FIX do not check connected here, otherwise miss responce
if(!_client /*|| !_client->connected()*/ || _RXbuffer == NULL) {
return 0;
}

Expand Down

0 comments on commit 51e222c

Please sign in to comment.