summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/red_channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index 418cf500..a6fee999 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -220,6 +220,9 @@ void red_channel_client_default_peer_on_error(RedChannelClient *rcc)
static void red_channel_peer_on_incoming_error(RedChannelClient *rcc)
{
+ if (rcc->stream->shutdown) {
+ return; // assume error has already been handled which caused the shutdown.
+ }
rcc->channel->on_incoming_error(rcc);
}