mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
msgpack-rpc: Don't try to write into a closed channel
This commit is contained in:
parent
da3f097807
commit
2729ad195b
@ -491,6 +491,10 @@ static bool channel_write(Channel *channel, WBuffer *buffer)
|
||||
{
|
||||
bool success;
|
||||
|
||||
if (channel->closed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (channel->is_job) {
|
||||
success = job_write(channel->data.job, buffer);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user