From 7e31dd1071053dd326f19633a6f64188c787326d Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 6 Mar 2008 22:25:26 +0000 Subject: added missing conditions for sdp connect watch --- common/glib-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/glib-helper.c') 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; -- cgit