Continue reading from socket if no data received (#70)

Without this change, `modeslive` crashes if no data is available on the socket, which can happen during normal operation of a receiver if no aircraft are in range.

Tested on Python 3.7
This commit is contained in:
Chris Lajoie 2020-05-20 03:56:27 -06:00 committed by GitHub
parent 228306dd5f
commit 7892aac4de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,6 +282,8 @@ class TcpClient(object):
# raise RuntimeError("test exception")
except zmq.error.Again:
continue
except Exception as e:
tb = traceback.format_exc()
exception_queue.put(tb)