Report an error if we are unable to reconnect to the server.
@@ -1868,7 +1868,8 @@ update_device_attrs(
}
}
- httpReconnect(http, 30000, NULL);
+ if (httpReconnect(http, 30000, NULL))
+ {
ippDelete(cupsDoRequest(http, request, resource));
if (cupsLastError() != IPP_STATUS_OK)
@@ -1876,6 +1877,12 @@ update_device_attrs(
plogf(NULL, "Unable to update the output device with '%s': %s", printer_uri, cupsLastErrorString());
return (0);
}
+ }
+ else
+ {
+ plogf(NULL, "Unable to update the output device with '%s': %s", printer_uri, cupsLastErrorString());
+ return (0);
+ }
return (1);
}
