summaryrefslogtreecommitdiffstats
path: root/input/server.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-04 07:30:14 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-04 07:30:14 +0000
commita36be2a103e95b04d5b348c83b41dc8c06439990 (patch)
treec81c054292e610b93af27a4c416fd4e5f709b5f0 /input/server.c
parentf89882a84a048cd676798e4a047a73fb202e246d (diff)
Fix missing G_IO_NVAL handling
Diffstat (limited to 'input/server.c')
-rw-r--r--input/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input/server.c b/input/server.c
index b140bb6b..911fc8e7 100644
--- a/input/server.c
+++ b/input/server.c
@@ -69,7 +69,7 @@ static struct session_data *find_session(bdaddr_t *src, bdaddr_t *dst)
static gboolean session_event(GIOChannel *chan, GIOCondition cond, gpointer data)
{
- if (cond & (G_IO_HUP | G_IO_ERR))
+ if (cond & (G_IO_HUP | G_IO_ERR | G_IO_NVAL))
return FALSE;
return TRUE;
@@ -133,7 +133,7 @@ static void create_watch(int sk, struct session_data *session)
io = g_io_channel_unix_new(sk);
g_io_channel_set_close_on_unref(io, TRUE);
- g_io_add_watch(io, G_IO_IN | G_IO_HUP | G_IO_ERR,
+ g_io_add_watch(io, G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
session_event, session);
g_io_channel_unref(io);