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:
parent
41b4fd1792
commit
3236a31551
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue