def _stop_mainloop(): global stopping if not stopping: stopping = True dropConnections() wait_for_all_threads() # Debugging from moat.logging import stop_loggers stop_loggers() shut_down()
def process(self, **k): super(Shutdown_Worker,self).process(**k) dropConnections() _stop_mainloop()
def process(self, **k): super(Shutdown_Worker, self).process(**k) dropConnections() _stop_mainloop()