gathdlc: drain the last hdlc frame processed

If we're being destroyed, we should drain the last HDLC frame
This commit is contained in:
Denis Kenzior 2011-02-28 12:13:56 -06:00
parent 2446d1aa43
commit 1cbe91090d
1 changed files with 1 additions and 1 deletions

View File

@ -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)