In scheduler._schedule_main(), only consider a poll() event to be a state
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Jul 2008 22:28:41 +0000 (22:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Jul 2008 22:28:41 +0000 (22:28 -0000)
change if it results in a handler being unregistered.

svn path=/main/trunk/; revision=10992

pym/_emerge/__init__.py

index e9ad9f2c1bc9fbb364b16d7679bc2467254e5b11..d3a8008fccb79a84021df39f7396a1c501137101 100644 (file)
@@ -8235,9 +8235,9 @@ class Scheduler(object):
                        jobs = self._jobs
 
                        for f, event in poll():
-                               state_change += 1
                                handler, reg_id = event_handlers[f]
                                if not handler(f, event):
+                                       state_change += 1
                                        self._unregister(reg_id)
 
                        if jobs == self._jobs: