summaryrefslogtreecommitdiffstats
path: root/input/server.c
diff options
context:
space:
mode:
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;
}