Skip to content

Commit

Permalink
MIN Perform cooperative yield before checking flag
Browse files Browse the repository at this point in the history
Previously, it was possible that we would perform an extra (unnecessary)
loop.
  • Loading branch information
luispedro committed Feb 1, 2013
1 parent 1da6835 commit df4c11b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/tasks.py
Expand Up @@ -188,8 +188,8 @@ def _perform(self):
messages = [Message.load_by_mid(m, create_session=(lambda:session)) for m in ms]
rbglobals.index.add(messages)
session.expunge_all()
sleep()
if self.dead:
break
sleep()
self.status.emit('Message reindexing complete')

0 comments on commit df4c11b

Please sign in to comment.