From 85448aac8cf71b1528d4328def581b103326210d Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 27 Apr 2010 20:29:50 -0500 Subject: gatchat: get_channel should return one from GAtIO --- gatchat/gatchat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gatchat/gatchat.c') diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index 2aa2b4cb..19202b01 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -920,10 +920,10 @@ GAtChat *g_at_chat_new_blocking(GIOChannel *channel, GAtSyntax *syntax) GIOChannel *g_at_chat_get_channel(GAtChat *chat) { - if (chat == NULL) + if (chat == NULL || chat->io == NULL) return NULL; - return chat->channel; + return g_at_io_get_channel(chat->io); } GAtChat *g_at_chat_ref(GAtChat *chat) -- cgit v1.2.3