[PATCH 1/2] gatserver: Restore GAtServer disconnect handling
Zhenhua Zhang
zhenhua.zhang at intel.com
Tue Jul 6 18:46:31 PDT 2010
Restore GAtServer disconnect handling when resuming a server session
---
gatchat/gatserver.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index c63f04b..49e0de4 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);
--
1.6.3.3
More information about the ofono
mailing list