if we're on waiting, go on /invits.php to get my own id

This commit is contained in:
Romain Bignon 2010-11-11 16:00:43 +01:00
commit 6330ab2515
4 changed files with 27 additions and 10 deletions

View file

@ -101,8 +101,8 @@ class PriorityConnection(Optimization):
def check_godchilds(self):
with self.browser:
my_id = self.browser.get_my_id()
try:
my_id = self.browser.get_my_id()
nb_godchilds = self.browser.nb_godchilds()
except AdopteWait:
nb_godchilds = 0