summaryrefslogtreecommitdiffstats
path: root/input/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/manager.c')
-rw-r--r--input/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input/manager.c b/input/manager.c
index 47638278..5dfb0641 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -348,7 +348,7 @@ failed:
err_connection_failed(pr->conn, pr->msg, strerror(err));
cleanup:
- if (isk > 0)
+ if (isk >= 0)
close(isk);
close(pr->ctrl_sock);
@@ -406,7 +406,7 @@ static gboolean control_connect_cb(GIOChannel *chan,
return FALSE;
failed:
- if (csk > 0)
+ if (csk >= 0)
close(csk);
err_connection_failed(pr->conn, pr->msg, strerror(err));