Fix to stop

This commit is contained in:
Sara Damiano
2019-01-26 10:50:09 -05:00
parent 50081b4059
commit 14fa076803

View File

@@ -86,7 +86,6 @@ public:
}
virtual void stop() {
at->modemDisconnect(mux);
// Read and dump anything remaining in the u-blox buffer
// The socket will appear open in response to connected() even after it
// closes until all data is read from the buffer.
@@ -96,6 +95,7 @@ public:
rx.clear();
at->maintain();
}
at->modemDisconnect(mux);
sock_connected = false;
}