From efc5b936f83c34583071e576fa099a59d07803ac Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 12 Jul 2019 19:34:04 +0200 Subject: [PATCH] clean up after use --- owrx/wsjt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/owrx/wsjt.py b/owrx/wsjt.py index 6bb6dfe..7bb10cc 100644 --- a/owrx/wsjt.py +++ b/owrx/wsjt.py @@ -105,6 +105,10 @@ class Ft8Chopper(threading.Thread): self.outputReader.close() self.outputWriter.close() self.emptyScheduler() + try: + os.unlink(self.wavefilename) + except Exception: + logger.exception("error removing undecoded file") def read(self): try: