diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:54:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:54:50 +0000 |
commit | 451520af975c978c8ffaa1d9a0959b50c1b8e294 (patch) | |
tree | c2abdd80665f8494280a65417a9c21156ff41125 /src/protocol.c | |
parent | Adding upstream version 1.7.4. (diff) | |
download | ttyd-7e1cc18c0735ba4b4cef5b7e952374ab48694185.tar.xz ttyd-7e1cc18c0735ba4b4cef5b7e952374ab48694185.zip |
Adding upstream version 1.7.7.upstream/1.7.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 4 |
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); |