summaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:54:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:54:51 +0000
commitd83891d2823707ebcdd5b6ce505983c8cc305b0d (patch)
tree91be853b67b04aea4f09fb2b1063544865b79211 /src/protocol.c
parentReleasing progress-linux version 1.7.4-1~progress7.99u1. (diff)
downloadttyd-d83891d2823707ebcdd5b6ce505983c8cc305b0d.tar.xz
ttyd-d83891d2823707ebcdd5b6ce505983c8cc305b0d.zip
Merging upstream version 1.7.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 3a53f96..53e65d4 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -379,8 +379,8 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user,
}
}
- if (server->once && server->client_count == 0) {
- lwsl_notice("exiting due to the --once option.\n");
+ if ((server->once || server->exit_no_conn) && server->client_count == 0) {
+ lwsl_notice("exiting due to the --once/--exit-no-conn option.\n");
force_exit = true;
lws_cancel_service(context);
exit(0);