diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-01 14:31:19 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-01 14:31:19 -0700 |
commit | 847e7c7f147ae192f544dee82f81137e46ba2d9f (patch) | |
tree | 602e4a26bcd6adb9e25f7ab1bd483a3dd9e31cea | |
parent | 544c02da4946f11c64f3e1f682de253a76d3c0a9 (diff) | |
download | ofono-847e7c7f147ae192f544dee82f81137e46ba2d9f.tar.bz2 |
Fix order of PPP frame recording and processing
-rw-r--r-- | gatchat/ppp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/ppp.c b/gatchat/ppp.c index f36a86e6..289c235f 100644 --- a/gatchat/ppp.c +++ b/gatchat/ppp.c @@ -370,8 +370,8 @@ gboolean ppp_cb(GIOChannel *channel, GIOCondition cond, gpointer data) status = g_io_channel_read_chars(channel, buf, 256, &bytes_read, &error); if (bytes_read > 0) { - ppp_feed(ppp, (guint8 *) buf, bytes_read); ppp_record(ppp, TRUE, (guint8 *) buf, bytes_read); + ppp_feed(ppp, (guint8 *) buf, bytes_read); } if (status != G_IO_STATUS_NORMAL && status != G_IO_STATUS_AGAIN) return FALSE; |