From 1c98e7cad6bf2665457455c04dcb9758a3011606 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Sat, 23 Jun 2007 16:28:24 +0000 Subject: input: can't call input_device_close_channels if the device path doesn't exist --- input/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/server.c b/input/server.c index 19f5378c..c8e171f1 100644 --- a/input/server.c +++ b/input/server.c @@ -171,7 +171,7 @@ static gboolean connect_event(GIOChannel *chan, GIOCondition cond, gpointer data debug("Incoming connection on PSM %d", psm); if (input_device_set_channel(&src, &dst, psm, nsk) < 0) { - input_device_close_channels(&src, &dst); + close(nsk); return TRUE; } -- cgit