From 14fa076803244925e2110ed5f5fd3a3648035659 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Sat, 26 Jan 2019 10:50:09 -0500 Subject: [PATCH] Fix to stop --- src/TinyGsmClientUBLOX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TinyGsmClientUBLOX.h b/src/TinyGsmClientUBLOX.h index b698b8c..442b44d 100644 --- a/src/TinyGsmClientUBLOX.h +++ b/src/TinyGsmClientUBLOX.h @@ -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; }