summaryrefslogtreecommitdiffstats
path: root/gatchat/gatserver.c
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-07-07 09:46:31 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-07-07 11:26:55 -0500
commite70b1f0abd7c558e086e182fde5dc7b66a8425dc (patch)
tree45eaf74d9b54445d1ec7ea2dc65df513984a6085 /gatchat/gatserver.c
parent1badaf741a2d6b9fba8d6b1f6337724d2d0e785e (diff)
downloadofono-e70b1f0abd7c558e086e182fde5dc7b66a8425dc.tar.bz2
gatserver: Restore GAtServer disconnect handling
Restore GAtServer disconnect handling when resuming a server session
Diffstat (limited to 'gatchat/gatserver.c')
-rw-r--r--gatchat/gatserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index c63f04b8..49e0de49 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -1166,6 +1166,8 @@ void g_at_server_resume(GAtServer *server)
return;
}
+ g_at_io_set_disconnect_function(server->io, io_disconnect, server);
+
g_at_io_set_debug(server->io, server->debugf, server->debug_data);
g_at_io_set_read_handler(server->io, new_bytes, server);