michaelrsweet / pappl

PAPPL - Printer Application Framework
https://www.msweet.org/pappl
Apache License 2.0
309 stars 49 forks source link

Always false condition in `pappl/system.c` #205

Closed qarmin closed 2 years ago

qarmin commented 2 years ago

https://github.com/michaelrsweet/pappl/blob/97d7297ee47a21597b19791ccb660da27513db29/pappl/system.c#L594-L601

if system->num_clients < system->max_clients is true then opposite condition is always false

michaelrsweet commented 2 years ago

Hmm, looks like a copy/paste error. The intent is to restore listening for new connections once the number of clients goes below the preset limit.

michaelrsweet commented 2 years ago

[master e47214d] Fix max-clients code that re-enables listening (Issue #205)