Skip to content

Commit 6344b9d

Browse files
authored
Merge pull request #10579 from kevinong0108/fix_cellular_quectel_bg96
Cellular: fix Quectel BG96 missing unlock at socket_connect
2 parents 8e44a75 + 75162f9 commit 6344b9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ nsapi_error_t QUECTEL_BG96_CellularStack::socket_connect(nsapi_socket_t handle,
7070
if ((_at.get_last_error() == NSAPI_ERROR_OK) && err) {
7171
if (err == BG96_SOCKET_BIND_FAIL) {
7272
socket->created = false;
73+
_at.unlock();
7374
return NSAPI_ERROR_PARAMETER;
7475
}
7576
_at.cmd_start("AT+QICLOSE=");
@@ -177,6 +178,7 @@ void QUECTEL_BG96_CellularStack::handle_open_socket_response(int &modem_connect_
177178
modem_connect_id = _at.read_int();
178179
err = _at.read_int();
179180
}
181+
180182
nsapi_error_t QUECTEL_BG96_CellularStack::create_socket_impl(CellularSocket *socket)
181183
{
182184
int modem_connect_id = -1;

0 commit comments

Comments
 (0)