gatmux: Unref the chat instead of using shutdown

This commit is contained in:
Denis Kenzior 2010-04-27 17:10:18 -05:00
parent b5f81f4012
commit 8645b05c4f
1 changed files with 2 additions and 1 deletions

View File

@ -722,7 +722,8 @@ static void mux_setup_cb(gboolean ok, GAtResult *result, gpointer user_data)
channel = g_at_chat_get_channel(msd->chat);
channel = g_io_channel_ref(channel);
g_at_chat_shutdown(msd->chat);
g_at_chat_unref(msd->chat);
msd->chat = NULL;
flags = g_io_channel_get_flags(channel) | G_IO_FLAG_NONBLOCK;
g_io_channel_set_flags(channel, flags, NULL);