Skip to content

Commit 98e744a

Browse files
committed
fix error introduced in #3149
1 parent 1d97f2e commit 98e744a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mongoose.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5378,8 +5378,8 @@ void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
53785378
for (c = mgr->conns; c != NULL; c = tmp) {
53795379
tmp = c->next;
53805380
struct connstate *s = (struct connstate *) (c + 1);
5381-
bool is_tls = !c->is_resolving && !c->is_arplooking && !c->is_listening &&
5382-
!c->is_connecting;
5381+
bool is_tls = c->is_tls && !c->is_resolving && !c->is_arplooking &&
5382+
!c->is_listening && !c->is_connecting;
53835383
mg_call(c, MG_EV_POLL, &now);
53845384
MG_VERBOSE(("%lu .. %c%c%c%c%c %lu %lu", c->id, c->is_tls ? 'T' : 't',
53855385
c->is_connecting ? 'C' : 'c', c->is_tls_hs ? 'H' : 'h',

src/net_builtin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,8 @@ void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
12121212
for (c = mgr->conns; c != NULL; c = tmp) {
12131213
tmp = c->next;
12141214
struct connstate *s = (struct connstate *) (c + 1);
1215-
bool is_tls = !c->is_resolving && !c->is_arplooking && !c->is_listening &&
1216-
!c->is_connecting;
1215+
bool is_tls = c->is_tls && !c->is_resolving && !c->is_arplooking &&
1216+
!c->is_listening && !c->is_connecting;
12171217
mg_call(c, MG_EV_POLL, &now);
12181218
MG_VERBOSE(("%lu .. %c%c%c%c%c %lu %lu", c->id, c->is_tls ? 'T' : 't',
12191219
c->is_connecting ? 'C' : 'c', c->is_tls_hs ? 'H' : 'h',

0 commit comments

Comments
 (0)