mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
close fd before assert
This commit is contained in:
parent
192a5f179f
commit
7a2fac3351
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user