port: assert that the update queue is empty before freeing

This commit is contained in:
Bert Belder 2018-05-03 22:55:03 +02:00
parent 5b7b5b0ed4
commit 55d08bee97
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -110,6 +110,8 @@ int ep_port_delete(ep_port_t* port_info) {
poll_group_delete(poll_group);
}
assert(queue_empty(&port_info->sock_update_queue));
DeleteCriticalSection(&port_info->lock);
_ep_port_free(port_info);