Commit 1eff9aba authored by mark@ecs.vuw.ac.nz's avatar mark@ecs.vuw.ac.nz Committed by Marek Kasik

Signalize that CUPS connection is available when EISCONN occurs

Add test for EISCONN error when testing whether a connection to CUPS server
is available (#576678 - patch by mark@ecs.vuw.ac.nz).
Signed-off-by: default avatarMarek Kasik <mkasik@redhat.com>
parent 3969d1b9
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment