gsmdial: Unref the chat instead of using shutdown

This commit is contained in:
Denis Kenzior 2010-04-27 17:10:42 -05:00
parent 8645b05c4f
commit d875298404
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
* shutdown gatchat or else it tries to take all the input
* from the modem and does not let PPP get it.
*/
g_at_chat_shutdown(control);
g_at_chat_shutdown(modem);
g_at_chat_unref(control);
g_at_chat_unref(modem);
/* open ppp */
ppp = g_at_ppp_new(channel);