From 1cbe91090df651278f853b56738859b0c9969929 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 28 Feb 2011 12:13:56 -0600 Subject: [PATCH] gathdlc: drain the last hdlc frame processed If we're being destroyed, we should drain the last HDLC frame --- gatchat/gathdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)