mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
msgpack-rpc: Don't try to write into a closed channel
This commit is contained in:

committed by
Thiago de Arruda

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 {
|
||||
|
Reference in New Issue
Block a user