Avoiding warning from GLib with GLib.source_remove()
Avoiding warning from GLib with GLib.source_remove() Question: When I need a part of my program that has GLib timeout functions set with self.timeout_id = GLib.timeout_add_seconds(refresh, self._check_price) I use def stop(self): if self.timeout_id: GLib.source_remove(self.timeout_id) to make sure this timeout_id still exists before attempting to remove it. Yet I still get these pesky error messages from time …