Ticket #3745: t.names.client.Resolver_maybeParseConfig_optional.patch

File t.names.client.Resolver_maybeParseConfig_optional.patch, 706 bytes (added by ivank, 9 years ago)
  • twisted/names/client.py

     
    164164                self._lastResolvTime = mtime
    165165                self.parseConfig(resolvConf)
    166166
    167         # Check again in a little while
    168         self._parseCall = self._reactor.callLater(
    169             self._resolvReadInterval, self.maybeParseConfig)
     167        if self._resolvReadInterval:
     168            # Check again in a little while
     169            self._parseCall = self._reactor.callLater(
     170                self._resolvReadInterval, self.maybeParseConfig)
    170171
    171172
    172173    def parseConfig(self, resolvConf):