Browse Source

Fixed read() to not wait on closed socket

v_master
SRGDamia1 7 years ago
parent
commit
c7d79f40dd
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/TinyGsmClientA6.h
  2. +1
    -1
      src/TinyGsmClientESP8266.h
  3. +1
    -1
      src/TinyGsmClientM590.h

+ 1
- 1
src/TinyGsmClientA6.h View File

@ -126,7 +126,7 @@ public:
continue;
}
// TODO: Read directly into user buffer?
if (!rx.size()) {
if (!rx.size() && sock_connected) {
at->maintain();
//break;
}


+ 1
- 1
src/TinyGsmClientESP8266.h View File

@ -108,7 +108,7 @@ public:
continue;
}
// TODO: Read directly into user buffer?
if (!rx.size()) {
if (!rx.size() && sock_connected) {
at->maintain();
//break;
}


+ 1
- 1
src/TinyGsmClientM590.h View File

@ -123,7 +123,7 @@ public:
continue;
}
// TODO: Read directly into user buffer?
if (!rx.size()) {
if (!rx.size() && sock_connected) {
at->maintain();
//break;
}


Loading…
Cancel
Save