summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-06 22:25:26 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-06 22:25:26 +0000
commit7e31dd1071053dd326f19633a6f64188c787326d (patch)
tree3071bb63605a67e63161e710b4082d298b097ade
parent09ebec0029781ca4fccae8cc8e226108c0c0c2da (diff)
added missing conditions for sdp connect watch
-rw-r--r--common/glib-helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c
index b97aa82c..f4d3f9d4 100644
--- a/common/glib-helper.c
+++ b/common/glib-helper.c
@@ -168,7 +168,8 @@ int bt_discover_services(const bdaddr_t *src, const bdaddr_t *dst,
ctxt->user_data = user_data;
chan = g_io_channel_unix_new(sdp_get_socket(s));
- g_io_add_watch(chan, G_IO_OUT, connect_watch, ctxt);
+ g_io_add_watch(chan, G_IO_OUT | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
+ connect_watch, ctxt);
g_io_channel_unref(chan);
return 0;