[PATCH spice-server 1/2] red-client: Do not compute channel if client is not connected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]