mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-09 23:12:32 +00:00
server/red_channel: ignore error if already shutdown
on red_channel_peer_on_incoming_error, if we are already shutdown, do not call the channel's error handler. Since the channel has been shutdown, we assume this is a second or later error, and handling has already occured.
This commit is contained in:
parent
4e304ff40f
commit
03cf66383c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user