Cellular: Fix Gemalto driver to handle remote peer closed

pull/12131/head
Ari Parkkila 2019-12-18 01:37:53 -08:00
parent 89b66465c2
commit 31bd1a795b
1 changed files with 11 additions and 0 deletions

View File

@ -55,6 +55,17 @@ void GEMALTO_CINTERION_CellularStack::urc_sis()
sock->_cb(sock->_data);
}
}
if (urc_code == 0) {
int urc_info_id = _at.read_int();
if (urc_info_id == 48) {
tr_info("Socket closed %d", sock_id);
sock->closed = true;
if (sock->_cb) {
sock->_cb(sock->_data);
}
}
}
}
}