Skip to content

Commit

Permalink
Fix max-clients code that re-enables listening (Issue #205)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed May 22, 2022
1 parent 785a77c commit e47214d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ Changes in PAPPL
Changes in v1.2.1
-----------------

- Fixed a bug in the max-clients support code (Issue #205)
- Fixed compiler warnings (Issue #206, Issue #207)
- PAPPL didn't compile against CUPS 2.2.6 and earlier.
- Fixed corruption in the English localization file.
- PAPPL didn't compile against CUPS 2.2.6 and earlier.


Changes in v1.2.0
Expand Down
7 changes: 2 additions & 5 deletions pappl/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,8 @@ papplSystemRun(pappl_system_t *system) // I - System
}
else if (system->num_clients < system->max_clients)
{
if (system->num_clients >= system->max_clients)
{
for (i = 0; i < (size_t)system->num_listeners; i ++)
system->listeners[i].events = POLLIN;
}
for (i = 0; i < (size_t)system->num_listeners; i ++)
system->listeners[i].events = POLLIN;
}

dns_sd_host_changes = _papplDNSSDGetHostChanges();
Expand Down

0 comments on commit e47214d

Please sign in to comment.