def fini(): debug('fini') from gui.shared import g_eventBus g_eventBus.removeListener(events.GUICommonEvent.APP_STARTED, appstart.AppStarted) g_eventBus.removeListener(events.ShowViewEvent.SHOW_LOBBY, g_xvm.onShowLobby) g_eventBus.removeListener(events.ShowViewEvent.SHOW_LOGIN, g_xvm.onShowLogin) g_websock.stop()
def fini(): debug('fini') g_appLoader.onGUISpaceChanged -= g_xvm.onGUISpaceChanged g_eventBus.removeListener(XFWCOMMAND.XFW_CMD, g_xvm.onXfwCommand) g_eventBus.removeListener(XVM_EVENT.RELOAD_CONFIG, config.load) g_eventBus.removeListener(XVM_EVENT.CONFIG_LOADED, g_xvm.onConfigLoaded) g_eventBus.removeListener(XVM_EVENT.SYSTEM_MESSAGE, g_xvm.onSystemMessage) g_websock.on_message -= g_xvm.on_websock_message g_websock.on_error -= g_xvm.on_websock_error g_websock.stop() filecache.fin()