kopia lustrzana https://github.com/projecthorus/wenet
Ensure rx_ssdv exits if no data coming in, to avoid filling logs eith error messages
rodzic
dc63c0c78d
commit
31ef4b268b
|
@ -167,6 +167,12 @@ while True:
|
|||
# logging.critical("Caught EOF. Exiting.")
|
||||
# sys.exit(1)
|
||||
|
||||
|
||||
if data == b'':
|
||||
# EOF! Quit.
|
||||
logging.critical("EOF on stdin, possible rtl_sdr failure? Exiting.")
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
packet_type = decode_packet_type(data)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue