goto enum_finished;
// Get DNS-SD printers...
- gettimeofday(&curtime, NULL);
-
if ((dnssd = cupsDNSSDNew(dnssd_error_cb, NULL)) == NULL)
{
DEBUG_puts("1cups_enum_dests: Unable to create service browser, returning 0.");
else
remaining = msec;
+ gettimeofday(&curtime, NULL);
+
while (remaining > 0 && (!cancel || !*cancel))
{
// Check for input...
DEBUG_printf("1cups_enum_dests: remaining=%d", remaining);
- cups_elapsed(&curtime);
-
- remaining -= cups_elapsed(&curtime);
-
cupsRWLockRead(&data.rwlock);
for (i = 0, num_devices = cupsArrayCount(data.devices), count = 0, completed = 0; i < num_devices; i ++)
break;
usleep(100000);
+
+ remaining -= cups_elapsed(&curtime);
}
// Return...