summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ot_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ot_config.c b/src/ot_config.c
index a4c2a47..e689314 100644
--- a/src/ot_config.c
+++ b/src/ot_config.c
@@ -485,10 +485,10 @@ static void listen_resolve_defaults(void) {
485 /* A tcp worker hands a connection it cannot finish to the event loop, 485 /* A tcp worker hands a connection it cannot finish to the event loop,
486 which only one thread may touch where the set is ours rather than the 486 which only one thread may touch where the set is ours rather than the
487 kernel's */ 487 kernel's */
488 if (entry->proto == FLAG_TCP && entry->workers > 1 && !event_can_share()) { 488 if (entry->proto == FLAG_TCP && entry->workers > 0 && !event_can_share()) {
489 fprintf(stderr, "Warning: Multiple workers impossible on this platform with event mechanism %s chosen.\n", 489 fprintf(stderr, "Warning: tcp workers impossible on this platform with event mechanism %s chosen.\n",
490 event_mechanism()); 490 event_mechanism());
491 entry->workers = 1; 491 entry->workers = 0;
492 } 492 }
493 } 493 }
494} 494}