summaryrefslogtreecommitdiffstats
path: root/gatchat/gatmux.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-27 17:10:18 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-28 17:27:34 -0500
commit8645b05c4f7ca085e650f4550f7463f670d3e652 (patch)
tree3582168ced1827e9ed58643a5c926a91447ccec3 /gatchat/gatmux.c
parentb5f81f40120f01dc82b710a9f41ead29bcf2aed4 (diff)
downloadofono-8645b05c4f7ca085e650f4550f7463f670d3e652.tar.bz2
gatmux: Unref the chat instead of using shutdown
Diffstat (limited to 'gatchat/gatmux.c')
-rw-r--r--gatchat/gatmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c
index 139edd2e..ea87c211 100644
--- a/gatchat/gatmux.c
+++ b/gatchat/gatmux.c
@@ -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);