diff --git a/src/channel.c b/src/channel.c index ff3d24fe8c..992c6bda35 100644 --- a/src/channel.c +++ b/src/channel.c @@ -2918,6 +2918,10 @@ channel_read(channel_T *channel, int part, char *func) sock_T fd; int use_socket = FALSE; + /* If we detected a read error don't try reading again. */ + if (channel->ch_to_be_closed) + return; + fd = channel->ch_part[part].ch_fd; if (fd == INVALID_FD) { @@ -3218,6 +3222,10 @@ channel_handle_events(void) for (channel = first_channel; channel != NULL; channel = channel->ch_next) { + /* If we detected a read error don't try reading again. */ + if (channel->ch_to_be_closed) + continue; + /* check the socket and pipes */ for (part = PART_SOCK; part <= PART_ERR; ++part) { diff --git a/src/version.c b/src/version.c index 5402394e38..4fd2ec2990 100644 --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1849, /**/ 1848, /**/