Merge pull request #2841 from javier-moreno-tridonic-com/fix-border-router-shudown-reconections

Fixed assert failure on reconections
pull/2828/merge
Sam Grove 2016-09-28 14:59:52 -07:00 committed by GitHub
commit 6856a892ef
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}