Ticket #5067: patch

File patch, 1.1 KB (added by thomasvs, 11 years ago)
  • twisted/internet/gtk2reactor.py

     
    254254        if delay == 0:
    255255            return # shouldn't delay, so just return
    256256        self.doIterationTimer = gobject.timeout_add(int(delay * 1000),
    257                                                 self.doIterationTimeout)
     257                                                self.doIterationTimeout,
     258                                                priority=gobject.PRIORITY_DEFAULT_IDLE)
    258259        # This will either wake up from IO or from a timeout.
    259260        self.__iteration(1) # block
    260261        # note: with the .simulate timer below, delays > 0.1 will always be
     
    295296        if timeout is None:
    296297            timeout = 0.1
    297298        # grumble
    298         self._simtag = gobject.timeout_add(int(timeout * 1010), self.simulate)
     299        self._simtag = gobject.timeout_add(int(timeout * 1010), self.simulate, priority=gobject.PRIORITY_DEFAULT_IDLE)
    299300
    300301