More SNtp debug 3

This commit is contained in:
Sergey Lyubka committed 2022-05-27 20:39:37 +01:00
1 parent e5d3d02307
commit 360dedd9b2
3 files changed
+6 -22

No files matched your search

+2 -2
View File
@@ -502,8 +502,8 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
if (c->is_closing || c->is_resolving || FD(c) == INVALID_SOCKET) {
// Socket not valid, ignore
} else {
c->is_readable = (unsigned) (fds[i].revents & POLLIN ? true : false);
c->is_writable = (unsigned) (fds[i].revents & POLLOUT ? true : false);
c->is_readable = (unsigned) (fds[i].revents & POLLIN ? 1 : 0);
c->is_writable = (unsigned) (fds[i].revents & POLLOUT ? 1 : 0);
fds[i].revents = 0;
if (mg_tls_pending(c) > 0) c->is_readable = 1;
}