Fix build with POLLER=POLL
This commit is contained in:
1 parent
06439fa2fc
commit
ce798b1e8c
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user