diff options
author | nicm <nicm> | 2021-02-12 06:52:48 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-02-12 06:52:48 +0000 |
commit | 632636dba535468d8266ad44c099f1217f1e3ea5 (patch) | |
tree | 58424b7a091c5a1388a65345479dcd1c0a3c20f7 | |
parent | 2b58c226db055eff4bbb971fa00938b42690f4ac (diff) | |
download | rtmux-632636dba535468d8266ad44c099f1217f1e3ea5.tar.gz rtmux-632636dba535468d8266ad44c099f1217f1e3ea5.tar.bz2 rtmux-632636dba535468d8266ad44c099f1217f1e3ea5.zip |
Do not care about the server socket closing if exiting anyway.
-rw-r--r-- | client.c | 6 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -553,8 +553,10 @@ static void client_dispatch(struct imsg *imsg, __unused void *arg) { if (imsg == NULL) { - client_exitreason = CLIENT_EXIT_LOST_SERVER; - client_exitval = 1; + if (!client_exitflag) { + client_exitreason = CLIENT_EXIT_LOST_SERVER; + client_exitval = 1; + } proc_exit(client_proc); return; } @@ -485,7 +485,7 @@ file_write_left(struct client_files *files) size_t left; int waiting = 0; - RB_FOREACH (cf, client_files, files) { + RB_FOREACH(cf, client_files, files) { if (cf->event == NULL) continue; left = EVBUFFER_LENGTH(cf->event->output); |