Archived
1
0

correct function return value

This commit is contained in:
Jeff Becker 2018-05-06 08:53:41 -04:00
parent 28dbe8009d
commit d370df06e8
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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()