From e70b1f0abd7c558e086e182fde5dc7b66a8425dc Mon Sep 17 00:00:00 2001 From: Zhenhua Zhang Date: Wed, 7 Jul 2010 09:46:31 +0800 Subject: gatserver: Restore GAtServer disconnect handling Restore GAtServer disconnect handling when resuming a server session --- gatchat/gatserver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gatchat/gatserver.c') 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); -- cgit v1.2.3