mirror of git://git.sysmocom.de/ofono
gsmdial: Unref ppp when we get disconnected
This commit is contained in:
parent
199582f684
commit
e2e17512e0
|
@ -235,7 +235,12 @@ static void ppp_connect(const char *iface, const char *ip,
|
|||
static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data)
|
||||
{
|
||||
char buf[64];
|
||||
|
||||
g_print("PPP Link down: %d\n", reason);
|
||||
|
||||
g_at_ppp_unref(ppp);
|
||||
ppp = NULL;
|
||||
|
||||
g_at_chat_resume(modem);
|
||||
|
||||
sprintf(buf, "AT+CFUN=%u", option_offmode);
|
||||
|
|
Loading…
Reference in New Issue