summaryrefslogtreecommitdiffstats
path: root/input/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/server.c')
-rw-r--r--input/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input/server.c b/input/server.c
index 4f553d7e..b37c35ff 100644
--- a/input/server.c
+++ b/input/server.c
@@ -282,11 +282,14 @@ static GIOChannel *intr_io = NULL;
int server_start(void)
{
ctrl_io = setup_l2cap(17);
- if (!ctrl_io)
+ if (!ctrl_io) {
+ error("Failed to listen on control channel");
return -1;
+ }
intr_io = setup_l2cap(19);
if (!intr_io) {
+ error("Failed to listen on interrupt channel");
g_io_channel_unref(ctrl_io);
ctrl_io = NULL;
}