mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 08:41:48 +00:00
server/red_channel: fix segfault on red_channel_destroy if peer already removed
This commit is contained in:
parent
b6445d35f7
commit
fcd4a8e446
@ -312,7 +312,7 @@ void red_channel_destroy(RedChannel *channel)
|
||||
void red_channel_shutdown(RedChannel *channel)
|
||||
{
|
||||
red_printf("");
|
||||
if (!channel->peer->shutdown) {
|
||||
if (channel->peer && !channel->peer->shutdown) {
|
||||
channel->core->watch_update_mask(channel->peer->watch,
|
||||
SPICE_WATCH_EVENT_READ);
|
||||
red_channel_pipe_clear(channel);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user