close fd before assert

This commit is contained in:
Guenter Obiltschnig 2016-09-06 16:12:53 +02:00
parent 192a5f179f
commit 7a2fac3351

View File

@ -422,8 +422,8 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
{
char buf[1024];
int rc = strerror_r(errno, buf, sizeof(buf));
poco_assert (rc == 0);
::close(epollfd);
poco_assert (rc == 0);
error(std::string("Can't insert socket to epoll queue: ") + buf);
}