[Spice-devel] [PATCH spice-server v8 04/12] fixup! Convert RedChannel hierarchy to GObject

Frediano Ziglio fziglio at redhat.com
Mon Oct 24 08:40:47 UTC 2016


ring_add was prepending channels

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/reds.c b/server/reds.c
index d06e5d5..3256385 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -455,7 +455,7 @@ void stat_remove_counter(RedsState *reds, uint64_t *counter)
 void reds_register_channel(RedsState *reds, RedChannel *channel)
 {
     spice_assert(reds);
-    reds->channels = g_list_append(reds->channels, channel);
+    reds->channels = g_list_prepend(reds->channels, channel);
 }
 
 void reds_unregister_channel(RedsState *reds, RedChannel *channel)
-- 
2.7.4



More information about the Spice-devel mailing list