diff options
-rw-r--r-- | gatchat/gatppp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c index b98ab14d..259fdeb0 100644 --- a/gatchat/gatppp.c +++ b/gatchat/gatppp.c @@ -536,8 +536,10 @@ void g_at_ppp_set_recording(GAtPPP *ppp, const char *filename) if (ppp == NULL) return; - if (ppp->record_fd > fileno(stderr)) + if (ppp->record_fd > fileno(stderr)) { close(ppp->record_fd); + ppp->record_fd = -1; + } if (filename == NULL) return; |