mirror of https://github.com/ARMmbed/mbed-os.git
Fixed assert failure on reconections
When the border router is switched off, the several retries will end up triggering the asserts in NanostackSocket::open. This is caused because socket_tbl elements, are never set to NULL.pull/2841/head
parent
58c12f19b2
commit
51fd80bb63
|
|
@ -170,6 +170,7 @@ NanostackSocket::~NanostackSocket()
|
|||
int ret = socket_free(socket_id);
|
||||
MBED_ASSERT(0 == ret);
|
||||
MBED_ASSERT(socket_tbl[socket_id] == this);
|
||||
socket_tbl[socket_id] = NULL;
|
||||
socket_id = -1;
|
||||
data_free_all();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue