summaryrefslogtreecommitdiff
path: root/louloulibs/network/poller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/network/poller.cpp')
-rw-r--r--louloulibs/network/poller.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/louloulibs/network/poller.cpp b/louloulibs/network/poller.cpp
index 26e5a8f..959567e 100644
--- a/louloulibs/network/poller.cpp
+++ b/louloulibs/network/poller.cpp
@@ -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)