Skip to content

Commit

Permalink
Fix unexpected egg incubation retry (#3276)
Browse files Browse the repository at this point in the history
incubator['used'] flag is set but not used in IncubateEggs._apply_incubators
  • Loading branch information
eevee-github authored and solderzzc committed Aug 9, 2016
1 parent f4b4c28 commit 3e1dc1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemongo_bot/cell_workers/incubate_eggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def work(self):

def _apply_incubators(self):
for incubator in self.ready_incubators:
if incubator.get('used', False):
continue
for egg in self.eggs:
if egg["used"] or egg["km"] == -1:
continue
Expand Down

0 comments on commit 3e1dc1b

Please sign in to comment.