summaryrefslogtreecommitdiffstats
path: root/input/server.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-23 16:28:24 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-23 16:28:24 +0000
commit1c98e7cad6bf2665457455c04dcb9758a3011606 (patch)
treeedce678acf2d89ead1063d10642bbf483cbbb11f /input/server.c
parent7d8dc82e027404d688639c0aea2909c131f221f4 (diff)
input: can't call input_device_close_channels if the device path doesn't exist
Diffstat (limited to 'input/server.c')
-rw-r--r--input/server.c2
1 files changed, 1 insertions, 1 deletions
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;
}