summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-06-07 02:18:39 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-06-07 02:18:39 -0700
commit6178173160f51f987c0be186d86c0c651fa68fea (patch)
tree483f836f074fd38d2bc28dccf469a8d5fc26f022 /gatchat/gatchat.c
parent16071b5324d72861322bb1bed1365a83a2eff90a (diff)
downloadofono-6178173160f51f987c0be186d86c0c651fa68fea.tar.bz2
Restore GAtChat disconnect handling when resuming a chat session
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r--gatchat/gatchat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index 3f238a27..9456f00a 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -913,6 +913,8 @@ void g_at_chat_resume(GAtChat *chat)
chat->suspended = FALSE;
+ g_at_io_set_disconnect_function(chat->io, io_disconnect, chat);
+
g_at_io_set_debug(chat->io, chat->debugf, chat->debug_data);
g_at_io_set_read_handler(chat->io, new_bytes, chat);