def cleanup(self): self.stop_all_proxies() ServerCore.cleanup(self) start = monotonic_time() live = True log("cleanup() proxy instances: %s", self.instances) while monotonic_time() - start < PROXY_CLEANUP_GRACE_PERIOD and live: live = tuple(x for x in tuple(self.instances.keys()) if x.is_alive()) if live: log("cleanup() still %i proxies alive: %s", len(live), live) time.sleep(0.1) if live: self.stop_all_proxies(True) log("cleanup() frames remaining:") from xpra.util import dump_all_frames dump_all_frames(log)
def cleanup(self): self.stop_all_proxies() ServerCore.cleanup(self)