mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
More SNtp debug 3
This commit is contained in:
1 parent
e5d3d02307
commit
360dedd9b2
3 files changed
+6
-22
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user