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:
commit
2cec93bdf7
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user