1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-20 00:26:04 -05:00

Reconnect on socket timeout

This commit is contained in:
craigerl 2020-12-04 09:43:11 -08:00 committed by Hemna
parent 735cb3a557
commit b553987350

View File

@ -134,6 +134,7 @@ def setup_connection():
msg = ("user {} pass {} vers aprsd {}\n".format(user, password, aprsd.__version__))
sock.send(msg.encode())
def signal_handler(signal, frame):
LOG.info("Ctrl+C, exiting.")
# sys.exit(0) # thread ignores this