Hi,
I fixed an important functionality bug in Gajim that makes it use 100%
CPU when connecting (#634880) [0]. I added a patch (attached) that is
already in newer versions of Gajim for months [1].
The package is ready, can I ask my Debian developper to upload it?
Thanks.
[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634880
[1] http://trac.gajim.org/ticket/5991
--
Yann
Index: src/common/xmpp/idlequeue.py
===================================================================
--- src/common/xmpp/idlequeue.py 2011-07-20 16:31:21.891622194 +0200
+++ src/common/xmpp/idlequeue.py 2011-07-20 16:32:59.747657971 +0200
@@ -362,20 +362,21 @@
self.unplug_idle(fd)
return False
+ if flags & IS_CLOSED:
+ # io error, don't expect more events
+ self.remove_timeout(obj.fd)
+ self.unplug_idle(obj.fd)
+ obj.pollend()
+ return False
+
if flags & PENDING_READ:
#print 'waiting read on %d, flags are %d' % (fd, flags)
obj.pollin()
return True
- elif flags & PENDING_WRITE:
+ if flags & PENDING_WRITE:
obj.pollout()
return True
-
- elif flags & IS_CLOSED:
- # io error, don't expect more events
- self.remove_timeout(obj.fd)
- self.unplug_idle(obj.fd)
- obj.pollend()
return False
def process(self):