mirror of git://git.sysmocom.de/ofono
gathdlc: drain the last hdlc frame processed
If we're being destroyed, we should drain the last HDLC frame
This commit is contained in:
parent
2446d1aa43
commit
1cbe91090d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue