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