Changeset 8704

Show
Ignore:
Timestamp:
09/03/07 22:54:28 (15 months ago)
Author:
asterix
Message:

process all incoming and outgoing queues even if we receive big things (a file). Fixes #3380

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/xmpp/idlequeue.py

    r7415 r8704  
    207207                                raise 
    208208                for fd in waiting_descriptors[0]: 
    209                         self.queue.get(fd).pollin() 
    210                         self.check_time_events() 
    211                         return True 
     209                        q = self.queue.get(fd) 
     210                        if q: 
     211                                q.pollin() 
    212212                for fd in waiting_descriptors[1]: 
    213                         self.queue.get(fd).pollout() 
    214                         self.check_time_events() 
    215                         return True 
     213                        q = self.queue.get(fd) 
     214                        if q: 
     215                                q.pollout() 
    216216                for fd in waiting_descriptors[2]: 
    217217                        self.queue.get(fd).pollend()