summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
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;