From 498b670de076909452c0fd6bc4629aca8974d9f7 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 8 Jan 2023 09:39:39 -0500 Subject: fix up stuff for when LSP server exits --- lsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lsp.c') diff --git a/lsp.c b/lsp.c index 12c5be1..a7d7e2f 100644 --- a/lsp.c +++ b/lsp.c @@ -407,7 +407,6 @@ static bool lsp_send(LSP *lsp) { quit = true; } } - lsp->died = true; free(messages); return quit; @@ -428,6 +427,8 @@ static int lsp_communication_thread(void *data) { break; } + lsp->exited = true; + if (!lsp->process) { // process already exited return 0; -- cgit v1.2.3