timer_alarm: Set fd to -1 to avoid warnings on tgl_timer_delete

Warnings like this:

GLib-CRITICAL **: Source ID N was not found when attempting to remove it
This commit is contained in:
dequis 2015-12-01 20:51:30 -03:00
parent 41b4fd1792
commit 3236a31551

View file

@ -31,6 +31,7 @@ struct tgl_timer {
static int timer_alarm (gpointer arg) { static int timer_alarm (gpointer arg) {
struct tgl_timer *t = arg; struct tgl_timer *t = arg;
t->fd = -1;
t->cb (t->TLS, t->arg); t->cb (t->TLS, t->arg);
return FALSE; return FALSE;
} }