diff --git a/src/server/server.c b/src/server/server.c index 3bd942c..11d6a67 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -98,8 +98,7 @@ serverCtor(void * _this, va_list * params) (this->fds)[0].events = POLLIN; // (this->fds)[1].fd = this->sockSSL->handle; // (this->fds)[1].events = POLLIN; - // this->nfds = 2; - this->nfds = 1; + this->nfds = 2; return 0; } @@ -112,8 +111,9 @@ serverDtor(void * _this) int i; for (i=0; infds; i++) { - if (this->sock->handle != (this->fds)[i].fd && - this->sockSSL->handle != (this->fds)[i].fd) { + //if (this->sock->handle != (this->fds)[i].fd && + // this->sockSSL->handle != (this->fds)[i].fd) { + if (this->sock->handle != (this->fds)[i].fd) { serverCloseConn(this, i); } }