hdlc: Stop recording packets to stdout (fd = 0)

This commit is contained in:
Denis Kenzior 2010-06-29 11:46:40 -05:00
parent aca0fdf87f
commit 295270b4be
1 changed files with 2 additions and 2 deletions

View File

@ -221,11 +221,11 @@ GAtHDLC *g_at_hdlc_new_from_io(GAtIO *io)
if (!hdlc->decode_buffer)
goto error;
hdlc->record_fd = -1;
hdlc->io = g_at_io_ref(io);
g_at_io_set_read_handler(hdlc->io, new_bytes, hdlc);
hdlc->record_fd = -1;
return hdlc;
error: