Changeset cc567252f4e5…
Parent b0bcc8f675f9…
by
Changes to one file · Browse files at cc567252f4e5 Showing diff from parent b0bcc8f675f9 Diff from another changeset...
@@ -43,8 +43,9 @@ self.timeout_id = gobject.timeout_add(timeout, self.pulse_timer)
def end(self, msg=None, unmap=True):
- gobject.source_remove(self.timeout_id)
- self.timeout_id = None
+ if self.timeout_id:
+ gobject.source_remove(self.timeout_id)
+ self.timeout_id = None
text = ''
if msg:
|
Loading...