summaryrefslogtreecommitdiffstats
path: root/gatchat/gathdlc.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-02-28 12:13:56 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-02-28 16:13:56 -0600
commit1cbe91090df651278f853b56738859b0c9969929 (patch)
tree0698faafda5aa3e28528b4a9b8095b9dd5d6b132 /gatchat/gathdlc.c
parent2446d1aa432479bb1756471f88d1969f43673a90 (diff)
downloadofono-1cbe91090df651278f853b56738859b0c9969929.tar.bz2
gathdlc: drain the last hdlc frame processed
If we're being destroyed, we should drain the last HDLC frame
Diffstat (limited to 'gatchat/gathdlc.c')
-rw-r--r--gatchat/gathdlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index dd11043c..2d9eb6a6 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -177,9 +177,9 @@ static void new_bytes(struct ring_buffer *rbuf, gpointer user_data)
}
}
+out:
ring_buffer_drain(rbuf, pos);
-out:
hdlc->in_read_handler = FALSE;
if (hdlc->destroyed)