summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-08 09:39:39 -0500
committerpommicket <pommicket@gmail.com>2023-01-08 09:39:39 -0500
commit498b670de076909452c0fd6bc4629aca8974d9f7 (patch)
tree56f773483edd0adf90e0ebedb826e3cd4e51208d /lsp.c
parent01d5fcc72f6ea29d0f90b845b7565137e7daac14 (diff)
fix up stuff for when LSP server exits
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c3
1 files changed, 2 insertions, 1 deletions
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;