[Spice-devel] [PATCH spice-server 1/2] red-client: Do not compute channel if client is not connected
Frediano Ziglio
fziglio at redhat.com
Mon Aug 21 08:13:21 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/red-client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/red-client.c b/server/red-client.c
index 1dc082b4..b783b84c 100644
--- a/server/red-client.c
+++ b/server/red-client.c
@@ -185,8 +185,8 @@ void red_client_migrate(RedClient *client)
client->thread_id, pthread_self());
}
FOREACH_CHANNEL_CLIENT(client, iter, rcc) {
- channel = red_channel_client_get_channel(rcc);
if (red_channel_client_is_connected(rcc)) {
+ channel = red_channel_client_get_channel(rcc);
red_channel_migrate_client(channel, rcc);
}
}
--
2.13.5
More information about the Spice-devel
mailing list