summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--navit/event_glib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/event_glib.c b/navit/event_glib.c
index 4b2684644..0a7b3d7de 100644
--- a/navit/event_glib.c
+++ b/navit/event_glib.c
@@ -71,7 +71,7 @@ event_glib_add_watch(void *fd, enum event_watch_cond cond, struct callback *cb)
flags=G_IO_ERR|G_IO_HUP;
break;
}
- ret->source = g_io_add_watch(ret->iochan, cond, event_glib_call_watch, (gpointer)cb);
+ ret->source = g_io_add_watch(ret->iochan, flags, event_glib_call_watch, (gpointer)cb);
return ret;
}