ejmg / tomaty

tomaty is a gtk+3 based application for the pomodoro technique 🍅
MIT License
6 stars 1 forks source link

fixed repeat event calls by adding eventSourceID attribute to check f… #55

Closed ejmg closed 6 years ago

ejmg commented 6 years ago

…or existingcalls to .timeout_add_seconds

ejmg commented 6 years ago

testing it and it works. however i get occasional runtime warnings due to race conditions from gtk:

GLib.source_remove(self.eventSourceID)
/home/<<removed>>/tomaty.py:176: Warning: Source ID 638 was not found when attempting to remove it
  GLib.source_remove(self.eventSourceID)

For now, I'm bunting these warnings. Ideally, I will either fix the code so that they don't ever happen or just handle the warning message since it really is minor.