Removed recursive calls to maitain (shouldn't I have leared)

This commit is contained in:
Sara Damiano
2019-05-17 10:50:44 -04:00
parent 090e0163c5
commit 99a5b3938c
6 changed files with 21 additions and 39 deletions

View File

@@ -708,7 +708,6 @@ protected:
}
}
waitResponse(5000L);
maintain(); // look for a very quick response from the remote
// streamSkipUntil(','); // Skip mux
// return stream.readStringUntil('\n').toInt();
@@ -730,7 +729,6 @@ protected:
}
waitResponse();
DBG("### READ:", len, "from", mux);
maintain(); // Listen for a close or other URC
return len;
}
@@ -747,7 +745,6 @@ protected:
if (!result) {
sockets[mux]->sock_connected = modemGetConnected(mux);
}
maintain(); // Listen for a close or other URC
return result;
}
@@ -766,7 +763,6 @@ protected:
int res = stream.readStringUntil(',').toInt(); // socket state
waitResponse();
maintain(); // Listen for a close or other URC
// 0 Initial, 1 Opening, 2 Connected, 3 Listening, 4 Closing
return 2 == res;