vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.94k stars 719 forks source link

src/TinyGsmClientSequansMonarch.h: fix connection handling #502

Closed ffontaine closed 3 years ago

ffontaine commented 3 years ago

There is an issue in the handling of +SQNSS answer: the sock->sock_connected state will always be set to the state of the last socket. This will prevent any communication.

Fix this issue by checking that muxNo is equal to mux before updating.

Signed-off-by: Fabrice Fontaine fabrice.fontaine@orange.com