mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +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;
|
bool success;
|
||||||
|
|
||||||
|
if (channel->closed) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (channel->is_job) {
|
if (channel->is_job) {
|
||||||
success = job_write(channel->data.job, buffer);
|
success = job_write(channel->data.job, buffer);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user