From 316d749cf5292c3452c270d8de5cf9a6d95fdd6f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 17 Jun 2021 15:55:15 +0800 Subject: [PATCH] bugfix --- appPublic/udp_comm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/appPublic/udp_comm.py b/appPublic/udp_comm.py index 74d94de..0a3e180 100644 --- a/appPublic/udp_comm.py +++ b/appPublic/udp_comm.py @@ -7,6 +7,7 @@ BUFSIZE = 1024 class UdpComm: def __init__(self, port, callback, timeout=1): self.callback = callback + self.timeout = timeout self.host = get_free_local_addr()[0] self.port = port self.udpSerSock = socket(AF_INET, SOCK_DGRAM)