From 577b8ffa136c0b568fac9830d10a5519d6471322 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Mon, 9 Sep 2013 13:03:00 +0100 Subject: [PATCH] fix deactivation of SSL --- src/server/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } }