Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
timer_alarm: Set fd to -1 to avoid warnings on tgl_timer_delete
Browse files Browse the repository at this point in the history
Warnings like this:

GLib-CRITICAL **: Source ID N was not found when attempting to remove it
  • Loading branch information
dequis committed Dec 2, 2015
1 parent 41b4fd1 commit 3236a31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tgp-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct tgl_timer {

static int timer_alarm (gpointer arg) {
struct tgl_timer *t = arg;
t->fd = -1;
t->cb (t->TLS, t->arg);
return FALSE;
}
Expand Down

0 comments on commit 3236a31

Please sign in to comment.