uwiger / gproc

Extended process registry for Erlang
Apache License 2.0
1.07k stars 232 forks source link

Only shrink the pool when auto_size is true #169

Closed flambard closed 5 years ago

flambard commented 5 years ago

The previous fix for issue #167 only seems to work for pools of size 1. del_slot/2 still removed a worker slot if its name was located at the end of the list of workers.

With this change, the worker pool is not lopped off when auto_size =:= false.

Also included a unit test that provokes this bug.

uwiger commented 5 years ago

Ah, excellent! Thanks.