jdiazbb / rfxcmd

Automatically exported from code.google.com/p/rfxcmd
1 stars 0 forks source link

Cleanup at exit #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Cleanup is not correctly handled, especially regarding serial port when program 
exists: serial.close() is never called.

Indeed, using Ctrl-C to exit the program with trigger shutdown() function.
Check against serial port should be added in shutdown() function, something 
like this:

if serialport is not None:
  serialport.close()
  serialport = None

Last part of the script (line 2638 and below) (CLOSE SERIAL CONNECTION) becomes 
then unnecessary and can be removed (this part is never executed anyhow).

BR

Original issue reported on code.google.com by skim...@gmail.com on 17 Jan 2013 at 10:45

GoogleCodeExporter commented 8 years ago
Thanks for the input, I will fix this as well.

Original comment by sebastia...@gmail.com on 18 Jan 2013 at 4:02

GoogleCodeExporter commented 8 years ago
Fixed on 0.23 and 0.3x branch

Original comment by sebastia...@gmail.com on 26 Jan 2013 at 5:05

GoogleCodeExporter commented 8 years ago
Version 0.23 is now released

Original comment by sebastia...@gmail.com on 9 Feb 2013 at 3:22