[PATCH spice-gtk 6/9] Call channel_reset() directly when finishing coroutine

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

 



channel_disconnect() virtual method isn't overloaded by any
channel, and can be replaced by the equivalent channel_reset()
when finishing the coroutine.
---
 gtk/spice-channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 2df021d..a849dde 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -2435,7 +2435,7 @@ connected:
 cleanup:
     CHANNEL_DEBUG(channel, "Coroutine exit %s", c->name);
 
-    SPICE_CHANNEL_GET_CLASS(channel)->channel_disconnect(channel);
+    spice_channel_reset(channel, FALSE);
 
     if (c->state == SPICE_CHANNEL_STATE_RECONNECTING ||
         c->state == SPICE_CHANNEL_STATE_SWITCHING) {
-- 
2.1.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]