def fini(self): client = self.__client for (handlerName, _,) in _GLOOX_EVENTS_LISTENERS: setattr(client, handlerName, None) self.__handlers.clear() g_logOutput.clear() ClientHolder._clearClient()
def fini(self): client = self.__client for handlerName, _ in _GLOOX_EVENTS_LISTENERS: if not hasattr(client, handlerName): g_logOutput.error(CLIENT_LOG_AREA.PY_WRAPPER, 'Handler no is found', handlerName) continue setattr(client, handlerName, None) self.__handlers.clear() g_logOutput.clear() ClientHolder._clearClient() return
def fini(self): self.__cancelInboundSubsCallback() client = self.__client for handlerName, _ in _GLOOX_EVENTS_LISTENERS: if not hasattr(client, handlerName): g_logOutput.error(CLIENT_LOG_AREA.PY_WRAPPER, 'Handler no is found', handlerName) continue setattr(client, handlerName, None) self.__handlers.clear() g_logOutput.clear() ClientHolder._clearClient()