Permalink
Browse files

correct ordering for non-zero iterate delays

  • Loading branch information...
1 parent 0a322cd commit 84099e8bc03dfdcb87c9a988f4dd9878dfdda2a8 @ghtdak committed Mar 12, 2008
Showing with 2 additions and 3 deletions.
  1. +2 −3 qt4reactor.py
View
5 qt4reactor.py
@@ -174,12 +174,11 @@ def crash(self):
def iterate(self,delay=0.0):
t=self.running # not sure I entirely get the state of running
self.running=True
+ self._timer.stop() # in case its not (rare?)
try:
if delay == 0.0:
self.reactorInvokePrivate()
- self._timer.stop()
- #self.qApp.processEvents()
- #self._timer.start()
+ self._timer.stop() # supports multiple invocations
else:
endTime = delay + time.time()
self.reactorInvokePrivate()

0 comments on commit 84099e8

Please sign in to comment.