We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8ac5f commit 74420dbCopy full SHA for 74420db
src/AsyncTCP.cpp
@@ -1017,9 +1017,12 @@ size_t AsyncClient::write(const char* data) {
1017
1018
size_t AsyncClient::write(const char* data, size_t size, uint8_t apiflags) {
1019
size_t will_send = add(data, size, apiflags);
1020
- if(!will_send || !send()) {
+ if (!will_send) {
1021
return 0;
1022
}
1023
+ while (connected() && !send()) {
1024
+ taskYIELD();
1025
+ }
1026
return will_send;
1027
1028
0 commit comments