Mercurial > libervia-backend
diff frontends/quick_frontend/quick_app.py @ 200:7baee9bb37af
quick_frontend: fixed disconnect, and removed autojoin of muc room put for dev
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Aug 2010 01:13:39 +0800 |
parents | 9ee4a1d0d7fb |
children | 96186f36d8cb |
line wrap: on
line diff
--- a/frontends/quick_frontend/quick_app.py Fri Aug 20 01:12:43 2010 +0800 +++ b/frontends/quick_frontend/quick_app.py Fri Aug 20 01:13:39 2010 +0800 @@ -177,7 +177,6 @@ return debug(_("Connected")) self.setStatusOnline(True) - self.bridge.joinMUC('conference.necton2.int', 'test', self.profiles[self.profile]['whoami'].node, self.profile) #gof: def disconnected(self, profile): @@ -429,7 +428,10 @@ def onExit(self): """Must be called when the frontend is terminating""" #TODO: mange multi-profile here - autodisconnect = self.bridge.getParamA("autodisconnect","Connection", self.profile) == "true" - if autodisconnect and self.bridge.isConnected(self.profile): - #Does the user want autodisconnection ? - self.bridge.disconnect(self.profile) + try: + autodisconnect = self.bridge.getParamA("autodisconnect","Connection", self.profile) == "true" + if autodisconnect and self.bridge.isConnected(self.profile): + #Does the user want autodisconnection ? + self.bridge.disconnect(self.profile) + except: + pass