From d370df06e8e7f36afceb02c2f7ce537fda3e00a2 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 6 May 2018 08:53:41 -0400 Subject: [PATCH] correct function return value --- contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp b/contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp index ea7f3c9..7430bff 100644 --- a/contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp +++ b/contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp @@ -65,12 +65,9 @@ namespace ev EV_SET(&event, handler->fd, filter, EV_DELETE, 0, 0, handler); int ret = kevent(kfd, &event, 1, nullptr, 0, nullptr); if(ret == -1 || event.flags & EV_ERROR) - { std::cerr << "KqueueLoop::UntrackConn() kevent failed: " << strerror(event.data) << std::endl; - return false; - } - --conns; - return true; + else + --conns; } virtual void Run()