summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core.cpp b/core.cpp
index 8a11433..6f8f5a8 100644
--- a/core.cpp
+++ b/core.cpp
@@ -661,9 +661,8 @@ int main(int argc, char **argv) {
}
- if (FD_ISSET(servers[i]->sock, &readSet) || (servers[i]->gnutlsSessionInited && gnutls_record_check_pending(servers[i]->tls) > 0)) {
+ if (FD_ISSET(servers[i]->sock, &readSet) || servers[i]->hasTlsPendingData())
servers[i]->readAction();
- }
}
}