* [PATCH] test-server:Add test of PPP disconnect reason to avoid crash
@ 2011-02-17 17:27 Guillaume Zajac
2011-02-17 17:31 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Zajac @ 2011-02-17 17:27 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
---
gatchat/test-server.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gatchat/test-server.c b/gatchat/test-server.c
index e574d64..28bad1d 100644
--- a/gatchat/test-server.c
+++ b/gatchat/test-server.c
@@ -137,6 +137,12 @@ static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user)
g_at_ppp_unref(ppp);
ppp = NULL;
+ if (reason == G_AT_PPP_REASON_LINK_DEAD) {
+ g_at_server_unref(server);
+ server = NULL;
+ return;
+ }
+
g_at_server_resume(server);
g_at_server_set_debug(server, server_debug, "Server");
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] test-server:Add test of PPP disconnect reason to avoid crash
2011-02-17 17:27 [PATCH] test-server:Add test of PPP disconnect reason to avoid crash Guillaume Zajac
@ 2011-02-17 17:31 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-02-17 17:31 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
Hi Guillaume,
On 02/17/2011 11:27 AM, Guillaume Zajac wrote:
> ---
> gatchat/test-server.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
Patch has been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-17 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 17:27 [PATCH] test-server:Add test of PPP disconnect reason to avoid crash Guillaume Zajac
2011-02-17 17:31 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.