[Spice-devel] [PATCH 11/15] Change reds_mig_target_client_disconnect_all() to take RedsState arg

Frediano Ziglio fziglio at redhat.com
Tue Jan 19 06:29:44 PST 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/reds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index b079e02..a277df9 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1613,7 +1613,7 @@ static void reds_mig_target_client_free(RedsState *reds, RedsMigTargetClient *mi
     free(mig_client);
 }
 
-static void reds_mig_target_client_disconnect_all(void)
+static void reds_mig_target_client_disconnect_all(RedsState *reds)
 {
     RingItem *now, *next;
 
@@ -2950,7 +2950,7 @@ static void migrate_timeout(void *opaque)
         /* we will fall back to the switch host scheme when migration completes */
         main_channel_migrate_cancel_wait(reds->main_channel);
         /* in case part of the client haven't yet completed the previous migration, disconnect them */
-        reds_mig_target_client_disconnect_all();
+        reds_mig_target_client_disconnect_all(reds);
         reds_mig_cleanup(reds);
     } else {
         reds_mig_disconnect(reds);
-- 
2.4.3



More information about the Spice-devel mailing list