gatppp: Do not call disconnect func if suspended

This commit is contained in:
Guillaume Zajac 2011-05-20 11:38:14 +02:00 committed by Denis Kenzior
parent ab027e9e9c
commit db430aaf1c
1 changed files with 3 additions and 2 deletions

View File

@ -583,8 +583,9 @@ void g_at_ppp_unref(GAtPPP *ppp)
if (is_zero == FALSE)
return;
g_at_io_set_disconnect_function(g_at_hdlc_get_io(ppp->hdlc),
NULL, NULL);
if (ppp->suspended == FALSE)
g_at_io_set_disconnect_function(g_at_hdlc_get_io(ppp->hdlc),
NULL, NULL);
if (ppp->net)
ppp_net_free(ppp->net);