diff --git a/README.md b/README.md index a6c02ca..04b1261 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,4 @@ The base classes on which everything else is built. They expose all possible sce - Reverted back `library.properties` for Arduino IDE users - Arduino 3 / ESP-IDF 5 compatibility - Changed lib name: `AsyncTCP` -> `Async TCP` -- Point to `mathieucarbou/Async TCP @ ^3.1.0` +- Point to `mathieucarbou/Async TCP @ ^3.1.1` diff --git a/library.json b/library.json index 299ff2b..f2fef0b 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Async TCP", - "version": "3.1.0", + "version": "3.1.1", "description": "Asynchronous TCP Library for ESP32", "keywords": "async,tcp", "repository": { diff --git a/library.properties b/library.properties index bd85cae..2abc9b1 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Async TCP -version=3.1.0 +version=3.1.1 author=Me-No-Dev maintainer=Mathieu Carbou sentence=Async TCP Library for ESP32 diff --git a/src/AsyncTCP.cpp b/src/AsyncTCP.cpp index 4571449..3dfb346 100644 --- a/src/AsyncTCP.cpp +++ b/src/AsyncTCP.cpp @@ -929,6 +929,7 @@ void AsyncClient::_error(int8_t err) { tcp_err(_pcb, NULL); tcp_poll(_pcb, NULL, 0); } + _free_closed_slot(); _pcb = NULL; } if(_error_cb) { @@ -1005,8 +1006,7 @@ int8_t AsyncClient::_recv(tcp_pcb* pcb, pbuf* pb, int8_t err) { } pbuf_free(b); } - err = _tcp_recved(pcb, _closed_slot, total); - return err; + return _tcp_recved(pcb, _closed_slot, total); } int8_t AsyncClient::_poll(tcp_pcb* pcb){ diff --git a/src/AsyncTCP.h b/src/AsyncTCP.h index 144569b..9a9dcd1 100644 --- a/src/AsyncTCP.h +++ b/src/AsyncTCP.h @@ -22,10 +22,10 @@ #ifndef ASYNCTCP_H_ #define ASYNCTCP_H_ -#define ASYNCTCP_VERSION "3.1.0" +#define ASYNCTCP_VERSION "3.1.1" #define ASYNCTCP_VERSION_MAJOR 3 #define ASYNCTCP_VERSION_MINOR 1 -#define ASYNCTCP_VERSION_REVISION 0 +#define ASYNCTCP_VERSION_REVISION 1 #define ASYNCTCP_FORK_mathieucarbou #include "IPAddress.h"