Fix debug assert when closing internal DCB

Internal DCBs don't have file descriptors so the debug assertion needs to
be altered.
This commit is contained in:
Markus Mäkelä 2017-06-19 10:48:05 +03:00
parent d68d3072a8
commit d546d77401

View File

@ -3401,7 +3401,7 @@ int poll_remove_dcb(DCB *dcb)
* Only positive fds can be removed from epoll set.
*/
dcbfd = dcb->fd;
ss_dassert(dcbfd > 0);
ss_dassert(dcbfd > 0 || dcb->dcb_role == DCB_ROLE_INTERNAL);
if (dcbfd > 0)
{