1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

patch applied

This commit is contained in:
Joel Bender
2017-10-11 20:46:29 -04:00
parent 4d32ecb7a3
commit c879b7a8e6
3 changed files with 9 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ class UDPMultiplexer:
bind(self.direct, self.broadcastPort)
else:
self.broadcast = None
self.broadcastPort = None
# create and bind the Annex H and J servers
self.annexH = _MultiplexServer(self)
@@ -112,8 +113,10 @@ class UDPMultiplexer:
# pass along the close to the director(s)
self.directPort.close_socket()
self.directPort.close()
if self.broadcastPort:
self.broadcastPort.close_socket()
self.broadcastPort.close()
def indication(self, server, pdu):
if _debug: UDPMultiplexer._debug("indication %r %r", server, pdu)