gatchat: get_channel should return one from GAtIO

This commit is contained in:
Denis Kenzior 2010-04-27 20:29:50 -05:00
parent 19115e0a15
commit 85448aac8c
1 changed files with 2 additions and 2 deletions

View File

@ -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)