Fix race condition on stopping lsp client
This commit is contained in:
parent
b5d7829011
commit
ff6c2e7f15
@ -90,6 +90,9 @@ class LspEndpoint(threading.Thread):
|
|||||||
self.event_dict[current_id] = cond
|
self.event_dict[current_id] = cond
|
||||||
cond.acquire()
|
cond.acquire()
|
||||||
self.send_message(method_name, kwargs, current_id)
|
self.send_message(method_name, kwargs, current_id)
|
||||||
|
if self.shutdown_flag:
|
||||||
|
return None
|
||||||
|
|
||||||
cond.wait()
|
cond.wait()
|
||||||
cond.release()
|
cond.release()
|
||||||
result, error = self.response_dict[current_id]
|
result, error = self.response_dict[current_id]
|
||||||
|
Loading…
Reference in New Issue
Block a user