1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

merging #143 for next release

This commit is contained in:
Joel Bender 2017-12-06 21:06:26 -05:00
commit 2cec93bdf7
6 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)

View File

@ -253,6 +253,8 @@ class UDPDirector(asyncore.dispatcher, Server, ServiceAccessPoint):
if _debug: UDPDirector._debug("close_socket")
self.socket.close()
self.close()
self.socket = None
def handle_close(self):
"""Remove this from the monitor when it's closed."""

View File

@ -103,6 +103,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)

View File

@ -252,6 +252,8 @@ class UDPDirector(asyncore.dispatcher, Server, ServiceAccessPoint):
if _debug: UDPDirector._debug("close_socket")
self.socket.close()
self.close()
self.socket = None
def handle_close(self):
"""Remove this from the monitor when it's closed."""

View File

@ -103,6 +103,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)

View File

@ -252,6 +252,8 @@ class UDPDirector(asyncore.dispatcher, Server, ServiceAccessPoint):
if _debug: UDPDirector._debug("close_socket")
self.socket.close()
self.close()
self.socket = None
def handle_close(self):
"""Remove this from the monitor when it's closed."""