projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f55a5a
)
EventLoop.iteration: run timeouts if no fds
author
Zac Medico
<zmedico@gentoo.org>
Sat, 11 Feb 2012 21:11:10 +0000
(13:11 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 11 Feb 2012 21:11:10 +0000
(13:11 -0800)
pym/portage/util/_eventloop/EventLoop.py
patch
|
blob
|
history
diff --git
a/pym/portage/util/_eventloop/EventLoop.py
b/pym/portage/util/_eventloop/EventLoop.py
index a7161dbd56fd877081fadae151e35efc989cb068..07d9bec884404cc8cd4bcd20786553c1a755460b 100644
(file)
--- a/
pym/portage/util/_eventloop/EventLoop.py
+++ b/
pym/portage/util/_eventloop/EventLoop.py
@@
-162,7
+162,15
@@
class EventLoop(object):
events_handled = 0
if not event_handlers:
- return bool(events_handled)
+ if not self._polling:
+ self._polling = True
+ try:
+ if self._run_timeouts():
+ events_handled += 1
+ finally:
+ self._polling = False
+ if not event_handlers:
+ return bool(events_handled)
if not self._poll_event_queue:
if may_block: