[Spice-devel] [PATCH spice-gtk 6/9] Call channel_reset() directly when finishing coroutine
Marc-André Lureau
marcandre.lureau at redhat.com
Mon Feb 16 09:02:27 PST 2015
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
More information about the Spice-devel
mailing list