Fix #148: Functions cannot unschedule themselves

#93 Merged at 133d870
Repository
pmdevita
Branch
default
Repository
pyglet
Branch
default
Author
  1. Peter DeVita
Reviewers
Description

Because functions are removed from the schedule heap on call, when they call unschedule they are not found on the heap and unable to be removed. A previous patch added self._current_interval_item but unschedule but it looks like unschedule has been rewritten since then and is missing the check. This adds it back in.

  • Issues #148: Functions cannot unschedule themselves resolved

Comments (1)