Fix build with POLLER=POLL

This commit is contained in:
louiz’
2016-05-10 12:50:05 +02:00
parent 06439fa2fc
commit ce798b1e8c
+2
View File
@@ -28,8 +28,10 @@ Poller::Poller()
Poller::~Poller()
{
#if POLLER == EPOLL
if (this->epfd > 0)
::close(this->epfd);
#endif
}
void Poller::add_socket_handler(SocketHandler* socket_handler)