Ticket #1992: twisted-ticket-1992-20060808.diff

File twisted-ticket-1992-20060808.diff, 653 bytes (added by tvachon, 16 years ago)

Fix for this defect

  • imap4.py

    old new  
    16351635        except StopIteration:
    16361636            self.sendPositiveResponse(tag, 'FETCH completed')
    16371637            self._unblock()
    1638             self.setTimeout(self._oldTimeout)
    1639             del self._oldTimeout
     1638            self.setTimeout(getattr(self,'_oldTimeout',None))
     1639            try:
     1640                del self._oldTimeout
     1641            except AttributeError:
     1642                pass
    16401643        else:
    16411644            self.spewMessage(id, msg, query, uid
    16421645                ).addCallback(lambda _: self.__cbFetch(results, tag, query, uid)