From b553987350723887c094a87638c49c3f93e26d03 Mon Sep 17 00:00:00 2001 From: craigerl Date: Fri, 4 Dec 2020 09:43:11 -0800 Subject: [PATCH] Reconnect on socket timeout --- aprsd/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aprsd/main.py b/aprsd/main.py index bb1286b..6b25c4f 100644 --- a/aprsd/main.py +++ b/aprsd/main.py @@ -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