From 513950377df9cb93747ac69dae4ab55dded3ac5c Mon Sep 17 00:00:00 2001 From: David Wang Date: Mon, 19 Nov 2018 00:50:05 -0800 Subject: Allow remote side to terminate FDR connections rather than doing it ourselves. --- src/fdr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fdr.c b/src/fdr.c index f213e99..b2ea70a 100644 --- a/src/fdr.c +++ b/src/fdr.c @@ -480,7 +480,8 @@ static int fdr_handle_plist_cmd(fdr_client_t fdr) } free(command); - return 1; /* should terminate thread */ + /* FDR connection will be terminated remotely. Next receive will get nothing, error and terminate this worker thread. */ + return 0; } static int fdr_handle_proxy_cmd(fdr_client_t fdr) -- cgit v1.1-32-gdbae