id

106

title
Can't disconnect from Libervia
reporter
Adrien
created
08/12/2015, 11:40
updated
08/12/2015, 11:40
labels
Libervia
type
bug
status
queued
priority
normal
milestone
0.7
severity
major
body

It's difficult to reproduce but in some cases, Libervia will believe that you are disconnected when you are not, then you can't disconnect... I think this can be fixed here in server.py: def disconnected(self, profile): if not profile in self.sat_host.prof_connected: log.error("'disconnected' signal received for a not connected profile") return self.sat_host.prof_connected.remove(profile) if profile in self.signalDeferred: self.signalDeferred[profile].callback(("disconnected",)) del self.signalDeferred[profile] else: if profile not in self.queue: self.queue[profile] = [] self.queue[profile].append(("disconnected",)) Remove the return statement and do this instead: if not profile in self.sat_host.prof_connected: log.error("'disconnected' signal received for a not connected profile") else: self.sat_host.prof_connected.remove(profile) So you always try to fire the disconnected signal (and I believe that this is harmless).

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_106

You are not logged. You need to log in to comment.