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

check for no more clients for del_actor, not every indication

This commit is contained in:
Joel Bender 2017-04-27 11:34:42 -04:00
parent 91925d0b54
commit cced04d5be

View File

@ -88,16 +88,16 @@ class MiddleManASE(ApplicationServiceElement):
if del_actor:
if _debug: MiddleManASE._debug("indication del_actor=%r", del_actor)
# if there are no clients, quit
if not self.elementService.clients:
if _debug: MiddleManASE._debug(" - no clients, stopping")
stop()
if actor_error:
if _debug: MiddleManASE._debug("indication actor_error=%r error=%r", actor_error, error)
# tell the director to close
self.elementService.disconnect(actor_error.peer)
# if there are no clients, quit
if not self.elementService.clients:
if _debug: MiddleManASE._debug(" - no clients, stopping")
stop()
bacpypes_debugging(MiddleManASE)
#