Skip to content

Commit ce9491e

Browse files
committed
Modified stop() function in GSMClient.cpp
Added the state assignment in GSMClient::stop() API
1 parent 440e7c7 commit ce9491e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GSMClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ void GSMClient::stop()
429429
MODEM.waitForResponse(10000);
430430

431431
GSMSocketBuffer.close(_socket);
432+
_state = CLIENT_STATE_IDLE;
432433
_socket = -1;
433434
_connected = false;
434435
}

0 commit comments

Comments
 (0)