We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b0f45f + 3ad1ee1 commit b8f413aCopy full SHA for b8f413a
features/cellular/framework/targets/UBLOX/AT/UBLOX_AT_CellularStack.cpp
@@ -430,10 +430,12 @@ UBLOX_AT_CellularStack::CellularSocket *UBLOX_AT_CellularStack::find_socket(int
430
void UBLOX_AT_CellularStack::clear_socket(CellularSocket *socket)
431
{
432
if (socket != NULL) {
433
- socket->id = SOCKET_UNUSED;
+ socket->id = SOCKET_UNUSED;
434
socket->pending_bytes = 0;
435
- socket->_cb = NULL;
436
- socket->_data = NULL;
+ socket->closed = true;
+ if (socket->_cb) {
437
+ socket->_cb(socket->_data);
438
+ }
439
}
440
441
0 commit comments