summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkcupsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c
index af6e8d5a7..bcd03dc4b 100644
--- a/modules/printbackends/cups/gtkcupsutils.c
+++ b/modules/printbackends/cups/gtkcupsutils.c
@@ -1567,7 +1567,7 @@ gtk_cups_connection_test_get_state (GtkCupsConnectionTest *test)
error_code = errno;
- if (code == 0)
+ if (code == 0 || error_code == EISCONN)
{
close (test->socket);
test->socket = -1;